Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Audio
»
How to load something from a directory
Print
Pages: [
1
]
Author
Topic: How to load something from a directory (Read 2559 times)
0 Members and 1 Guest are viewing this topic.
LITcandlez
Newbie
Posts: 2
How to load something from a directory
«
on:
August 09, 2012, 04:57:05 am »
It there a way that when you use (!audio.OpenFromFile("audio.ogg")) you could load it from a directory instead of just dragging all the music and other resources into the same folder as the exe? I am using Visual Studio 2010 and SFML 2.0
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: How to load something from a directory
«
Reply #1 on:
August 09, 2012, 07:59:30 am »
audio.
OpenFromFile
(
"a_directory/audio.ogg"
)
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Audio
»
How to load something from a directory
anything