I’m a FMOD newbie (working on iOS). I’m want to enforce that no more than 24 sounds will be played in my app, so I init FMOD system with 24 channels.
I’m checking current playing channels (getChannelsPlaying) before I try to play a sound, if it’s exceeded 24 I just don’t play that sound.
The problem comes after a while when I reach to that limit (not once), I can’t play new sounds because all channels are occupied.
I would expect that on the next update() you will cleared the non playing channels, but it doesn’t happen every time.
Some times I need to go to bg and come back, keep playing a lot of channel simultaneously so I will exceed 24 limit, in order to reproduce it. But when I get to the problematic state, one channel or no channel at all is freed on each update, even if I let it rest for a while (keep calling to update()).