How to toggle Looping mode on event instance?

I do not see any way in the API to toggle on/off the looping mode on an event instance.

I’ve been trying to use the callback mechanisms to get access to the low-level FMOD::Sound and set the loop count on it, but it does not seem to work either.

Any idea ? Thanks.

It is not recommended to use this approach as it has not been designed for this use and could cause issues.

It is better to set this up in the Studio Event.
For example, a Loop Region can have trigger conditions which can be parameterized.
Allowing you to change the loop mode of the vent by using EventInstance::setParameterValue.

https://fmod.com/resources/documentation-studio?page=/glossary.html#loop-region