I have a stream, and it is playing. If I make it play a single time (with setMode(FMOD_LOOP_OFF)) I can argue when it is finished by polling isPlaying().
But if I set it to loop (with setMode(FMOD_LOOP_NORMAL)) and then back to normal, while it is playing, isPlaying() always gives a “true” even when the stream has finished and sound has stopped playing.
Am I doing something wrong here?
Also, I am a bit puzzled with Channel::setLoopCount(), Sound::setMode(FMOD_LOOP_X) and Channel::setMode(FMOD_LOOP_X). Which one have I to use in order to make my stream looping? All three of them?
thanks for any help,
It seems I got it, setting
to turn looping on, and
to turn it off works as expected. If I remove the 2 sound->setMode isPlaying() stays true past the end of sound, and the end callback never fires.
This operations are done while the sound plays.
Please login first to submit.