Allow device music playback [iOS / Android]

Hi.
How can we allow music from a background application (such as the iOS music app or podcasts app) to continue playing while our game runs. It is a fairly common feature that a lot of games provide, but I can’t see how to do this with the FMOD Studio API.

Can someone point me in the right direction for this. I’m unsure exactly what to even search for.

Cheers
Beric

We don’t have any specific handling of this with FMOD Studio, you would use the normal platform native controls for determining the final mix. The API you are interested in is the AudioSession API, specifically audio session categories.

You can read more about them here.

1 Like

That’s Perfect, Thanks! I wasn’t sure where to even start looking