Check Event Instrument or Type

I was wondering if there is a way to check if an event has a Programmer Instrument through something like the EventDescription or other data.

I’m interested in handling these events differently in my audio engine and this just seems like a potential solution for that. I didn’t see anything quite like what I was looking for in the api, but maybe I missed it.

I want to do this before creating an instance or playing a sound, so I wanted to use some sort of info from the event. Is this possible?

1 Like

There’s no existing functionality in the API that will tell you whether an event contains programmer instruments. However, you can use event user properties for this purpose - if you set a property on your events to indicate whether they contain a programmer instrument in FMOD Studio, you can use Studio::EventDescription::getUserProperty at runtime to retrieve the value of the property.

1 Like