Obtaining max instances of an event

Hi!

I am porting a codebase that uses the old Event Designer to the new FMOD Studio.
The legacy code uses the function getPropertyByIndex with FMOD_EVENTPROPERTY_MAX_PLAYBACKS to get back the maximum number of instances of an event.
What is the equivalent functionality of the new API? I checked that the property “Max Instances” still exists in the Studio and seems that that value has been correctly imported from the old project, but I haven’t seen any way to access to it.

Thanks.

Unfortunately there is no direct way to access the max instances property of an event in FMOD Studio. You may have to use something like a user property if you need that information, although it will have to be manually entered in Studio:
https://fmod.com/resources/documentation-api?page=content/generated/FMOD_Studio_EventDescription_GetUserProperty.html#/

1 Like