Retrieving info for playing events


(vectorunit) #1

With the Designer API we were able to query which events were currently playing at run-time (EventSystem::getInfo). This allowed us to visualize currently playing audio events within our 3d game world. I was not able to find a way to do this with the Studio API. Is it possible?


(Geoff Carlton) #2

You can iterate the loaded banks with:

Then you can iterate the event descriptions with:

Once you have events, you can find out what instances are playing with:

That will give you the instances which exist. You can query information about each instance, such as EventInstance::getPlaybackState for whether it is playing, stopping, or stopped.


(vectorunit) #3

Perfect, thanks! Works great.