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:
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.