SDL_mixer pausing on iOS and Android

I’ve noticed that SDL_mixer seems to auto pause the audio on iOS when I
leave my app, while the same does not happen on Android. However, I can’t
find any particular piece of code doing this explicitly, so it may be that
iOS is simply fading out/muting my app’s “audio channel” and/or freezing
the audio thread (along with others)?

Does anyone have more information on what’s going on? I’d like to imitate
this behaviour as closely as possible on Android, which currently seems to
be letting my app keep making sounds when it’s sent to the background.


I’m experiencing the same thing. Has anyone solved this or implemented a
work-around to pause SDL_mixer audio music on android?–
View this message in context:
Sent from the SDL mailing list archive at