Answered
0
0

in order to clean up my event instances, I use the call back to tell me when they finish so I can release them.

However, I find that many times an eventInstance will not start playing (either due to max voice constraint or something else).

in that case, there is no callback or any method as far as I can tell to inform me so that I can clean up the instance and not wait for a callback that will never happen.

The only method I can think of is to set a flag from the callback when the instance actually starts playing, and poll all event instances to see which ones didn’t start after a second or so.

  • You must to post comments
Best Answer
0
0

This was added as FMOD_STUDIO_EVENT_CALLBACK_START_FAILED in the event callback type. See the event callback section for more info:

http://52.88.2.202/documentation/#content/generated/FMOD_STUDIO_EVENT_CALLBACK.html

  • You must to post comments
0
0

There isn’t a good way to do that via a callback at the moment, so polling would be the only option. We’ll consider adding a new callback type that would allow this to be done in a simpler way.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.