1
Audio / Sound does not work at all..
« on: March 29, 2011, 06:15:18 pm »
Hello, i have been trying to add sound into my application with no success.
I am using the Codeblocks/Mingw SFML SDK. I do this to load a sound:
What's wrong?? I have linked to libsdfml-sound-d, the required dlls are next to my exe and no warnings from the compiler.
I am using the Codeblocks/Mingw SFML SDK. I do this to load a sound:
Code: [Select]
sf::SoundBuffer sb;
if(!sb.LoadFromFile("test.wav")){return 1;}
std::cout<<"\nbuffer loaded";
sf::Sound snd(sb);
snd.Play();
while(true){}
return 0;
What's wrong?? I have linked to libsdfml-sound-d, the required dlls are next to my exe and no warnings from the compiler.