Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Audio
»
"Failed to load sound buffer from file"
Print
Pages: [
1
]
Author
Topic: "Failed to load sound buffer from file" (Read 5511 times)
0 Members and 1 Guest are viewing this topic.
Drak
Newbie
Posts: 8
"Failed to load sound buffer from file"
«
on:
April 28, 2011, 08:33:03 pm »
I've read other people have had this problem. But I can't seem to fix mine.
VS2008
Release mode - dynamic linking / libs.
SFML 1.6
All the proper dlls are located within the program folder. (From extlibs)
The code is the code from the tutorial section of SFML 1.6 - playing a sound.
I tried debug / release (with the proper -d libs) and still nothing. Playing music works fine. But I can't get it to load anytime of .wav.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
"Failed to load sound buffer from file"
«
Reply #1 on:
April 28, 2011, 09:41:25 pm »
Make sure that the wav file is in the current working directory. This is the executable's directory if you run the app from the explorer, but it may be the project directory if you run it from your IDE.
Logged
Laurent Gomila - SFML developer
Drak
Newbie
Posts: 8
"Failed to load sound buffer from file"
«
Reply #2 on:
April 28, 2011, 09:49:57 pm »
Running from the explorer, so it's located inside the same folder of the exe.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
"Failed to load sound buffer from file"
«
Reply #3 on:
April 28, 2011, 10:27:18 pm »
Is it the wav file that is provided with the SFML SDK?
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Audio
»
"Failed to load sound buffer from file"
anything