Is it possible to know when a music cue is actually finished? The callbacks indicate when a segment starts or finishes, but if there is more than one segment in a cue how is it possible to determine when that cue has actually reached the end?
- pcorvo asked 9 years ago
Basically our underlying system has an active sound container that is used to store music and events that are playing, whenever a new sound tries to play it finds a free slot and assigns it to that event/cue. We use the event finished callbacks to signal the end of an event and thus the release of the corresponding active sound slot. Since music cues can have several segments we don’t have a notification of when the actual cue has stopped and we can clear the slot. We have worked around it by specifying a special slot for music that essentially never gets freed and we only change it’s cue once a new one tries to play so it’s not critical. Would be nice to have that notification though I suppose.
Currently there is no callback when a theme ends. If you know what segments are in a theme, you could track which segments are playing, and detect the end of the theme when the last segment from that theme ends.
Why do you need to know when a theme ends? What are you trying to achieve?
Please login first to submit.