1
Audio / Re: Cant get to play next song after first is finnished
« on: January 28, 2014, 12:24:13 am »
yeah. Moved conditional after
And its working. Thank you G.
while (app.isOpen())
{
if ( musicPlayer.getStatus() == sf::Music::Stopped )
{
musicPlayer.openFromFile("song2.wav");
musicPlayer.play();
std::cout << "Playing second intro" << std::endl;
}
sf::Event event;
....
{
if ( musicPlayer.getStatus() == sf::Music::Stopped )
{
musicPlayer.openFromFile("song2.wav");
musicPlayer.play();
std::cout << "Playing second intro" << std::endl;
}
sf::Event event;
....
And its working. Thank you G.