I have a problem regarding music in android (and possibly in iOS too).
I want to stop playing music (or not playing it at all) if the user is already listening music from other source.
I’ve found this article that shows how this can be done.
Basicaly, the idea is to handle the onAudioFocusChange callback from the audio manager and enable/disable the in-game music.
I searched the SDL mixer code but couldn’t find this event, nor any references to the AudioManager refered in the link.
Is is possible to do this in the current version of SDL?