Calling stop() on virtualized looping events does not stop those events

Hi there, I’m running FMOD Studio 2.03.13 (Apple silicon) and I have some strange behaviour I’d like to sort out. I have an event which loops and has a max instance count of 4, with the stealing behaviour set to virtualize.

At runtime, I have 5 EventInstances of this, and when I call stop() and release() on each event instance in rapid succession, not all of them actually stop playing.

I think this is because I’m calling stop() on the 5th EventInstance while it’s still virtualized, which somehow affects the stop() behaviour. Changing the stealing behaviour to something else in Studio solves the issue, but that has far-reaching implications in this codebase and I’d rather figure out what I’m doing wrong with virtualization here first.

Any suggestions? Thanks!

Ah! It was an issue on my end where we were initializing the EventInstances twice, losing the references for one of those iterations meaning we couldn’t actually stop them.

Haha, I was still struggling to reproduce this on my end! Glad you managed to track down the cause, and thanks for the update!