Programmer Instruments callback

Hey

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

https://www.fmod.com/resources/documentation-api?version=1.10&page=content/generated/engine_new_unity/script_example_programmersounds.html

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,
Simon

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.