SFML community forums
Help => Audio => Topic started by: Contadotempo on September 29, 2010, 08:26:38 pm
-
Hi, I'm new to the forums so I'm not sure if I'm posting in the correct section, but here it goes.
I tried making a program in Visual Studio C++ 2008 using SFML, that would play a simple .wav file. However when I run it I only get the message:
"Failed to load sound buffer from file "sound.wav".
The code is the default one provided on the Audio tutorial:
http://www.sfml-dev.org/tutorials/1.6/audio-sound.php
source file in: http://www.sfml-dev.org/tutorials/1.6/sources/audio-sound.cpp
I've included libsndfile-1 and openal32 on the exe folder. The sound is present on the folder as well and is named sound.wav
What could be wrong?
Thanks in advance for any help
-
It was a problem related to Visual Studio 2008.
I was compiling on debug mode. Changing it to "Release" solved it.