I’ve got problems detecting if the playback has been stopped when setting the FMOD_LOOP_OFF – Flag by calling the Sound::setMode(…) – Method.
There are no methods like ‘isStopped’ or so, so i don’t know how to detect if the sound has reached the end.
In fact, i simply wanted to know if it’s possible to know when the loop has [b:1lgikcr9]exactely[/b:1lgikcr9] finished.
PS: I also found [url=http://www.fmod.org/forum/viewtopic.php?p=25624&sid=76cd77d87748c52e1fc74e21bd22fb16:1lgikcr9]this[/url:1lgikcr9] thread, but there are no solutions too
- CodeFinder asked 11 years ago
isPlaying wont help, coz i need to detect WHEN the sound EXACTELY ends.
[quote="FireStorm":1fp76enc]If you want to know when it finishes, just use a callback.[/quote:1fp76enc]
>>Currently callbacks are driven by System::update and will only occur when this function is called.<<…Hm tell me how this should work EXACTELY ??
But thx for ur reply!
Any other ideas…. plz
- CodeFinder answered 11 years ago
You cant do it exactly, because fmod mixes audio data in chunks, or blocks of 1024 samples at a time. A sound may end half way through that block.
If you want to join sounds together, which is the main reason people want such accuracy, then use our sentencing feature, there is an example called realtimestitching that shows this.
Please login first to submit.