Android background


I currently use Fmod studio for my future project on Android & iOs platforms. I have an event played during the game (music theme). Currently, it continues if I return to my dashboard on Android. I think to mute it when the app is paused and unmuted it if the app is resumed but I’m not sure it’s the best way to do that. Especially if the Fmod thread continues to run, I’m afraid it consumes the device’s battery.

What’s is the guideline for that ? (both android & ios)

Thanks in advance


For Android I recommend reading the ‘lifecycle’ tutorial in the FMOD CHM docs for that platform. It discusses how to suspend and resume FMOD.

For iOS using default AudioSession settings your audio / game and all threads will automatically suspend when entering the background.