Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I am trying to play a set of songs one after another but am having an issue with all the songs playing at the same time, I have tried using a while loop to wait for one track ends before starting the next one but to no avail. currPlayingSound = irrKlangEngine.Play2D(fileName, false); while (currPlayingSound.PlayPosition!=0) while (currPlayingSound.PlayPosition<currPlayingSound.PlayLength) While(!currPlayingSound.Finished) None have worked. any thoughts how to wait for one file to finish before starting another one? |
||||
|
This basically is the right approache, although not the best. Inside your look, were you also waiting? With a call like sleep()? |
|