Um.. This is probably a stupid question, but the tutorials use a while loop which seems to play the sound (by checking it's status ??), and removing that stops the audio from being played...
So, how exactly should I go about playing sounds ?
In other words... This works:
sf::Music Music;
// char* song = "D:\\song.ogg";
Music.OpenFromFile(song);
Music.Play();
// Without the line below it doesn't work...
while (Music.GetStatus() == sf::Music::Playing) {}
And it also prevents anything else to be executed before the sound/music ends playing.
[/code]