1
Audio / Music how to?
« on: November 22, 2011, 06:06:53 pm »
...the problem is that your main thread exits before the audio playing thread could play any samples, and kills any spawned threads. if you insert this line right after sound.Play() the code will work fine.:
sf::Sleep(sound.GetDuration());
sf::Sleep(sound.GetDuration());