Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - wah

Pages: [1]
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:
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.

Pages: [1]
anything