Pause music sdl android

How can I have SDL pause the music when my Android app is not in the foreground?
My game pauses, but the music keeps playing.

Is there some way to register the following when the app is backgrounded?
Mix_PauseMusic();

brian–
Brian Lavender
http://www.brie.com/brian/

“There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies.”

Professor C. A. R. Hoare
The 1980 Turing award lecture
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140406/0894097f/attachment.pgp

There is a recent thread about it, her advice works greatly, catching
SDL_APP_WILLENTERBACKGROUND to Pause and SDL_APP_WILLENTERFOREGROUND to
Resume.

I’m currently struggling about return of main not exiting app, trying to
not explicitly call exit but figure the way is meant to be done.On Sun, Apr 6, 2014 at 10:17 PM, Brian Lavender wrote:

How can I have SDL pause the music when my Android app is not in the
foreground?
My game pauses, but the music keeps playing.

Is there some way to register the following when the app is backgrounded?
Mix_PauseMusic();

brian

Brian Lavender
http://www.brie.com/brian/

“There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies.”

Professor C. A. R. Hoare
The 1980 Turing award lecture

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJTQbZnAAoJELGFSlW7MacNU0oH/ijUPHv1K8dKsVdwOpe4Orfz
USBWWqeqYDSvf8KEpSy+2QaxyK6zGjHFe+6nXingdV/AEZMLtezGpVXORKjPMSeR
fnK7RGEIz6AuELeTzj5i1+FIeVbjEXRKtCD8CE0GY3ahkaLcu816IKLrcGyItfL0
io4zVAhtcrL+RP10j5EYerwEkzAtbaeHXDZP+pSzp+Tz7ySKgKVZWNHHZ8wCHotv
waMpXyukeBxmTh4zTcCa4jjdgJ1KADRmQm5MDObWuwkVnJ7W/TwrFFyfUKqHYE4g
YbKXjpYRs956C2B5CvTViMKCjpHNfDXxHZEWPfRJRQOfF/3SIa8+HMBNiMhf6LA=
=OWVD
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org