Programmer Instruments callback


I am using the FMOD example to get callbacks for programmer sounds.

I need to know when a sound is done playing.
I can log the events fine in the static callback function but I am lost on how to determine the status from the script scope where I called Playsound.

Help appreciated,

My workaround is checking the volume of the instance in the update.

You can check the Studio::EventInstance::getPlaybackState to determine when the Event stops playing.