I am not sure if this is a bug or we have to handle it manually (by using Event.APPLICATION_SUSPEND)? :-/
My mp3 audio keep on playing after double-clicking on the home button (iOS).
I've tested the following situations: Lock, Home and Sleep. All seems to be working normally (audio paused).
Comments
Be careful, this is exactly the kind of thing that Apple would love to reject an app for - unless it's a radio player, music player etc. where it's intentional.
So the audio in some apps can play at random times like that and nearly gave me a scare, definitely it is a bug. The app was an Objective-C app for a TV station allowing to play re-runs of shows.
Some of the apps/games I remember from the iPhone3 days would stutter with the sound or keep playing when they exited due to memory errors. Just saying, if that helps narrowing down the issues.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Kingdom Rush -> paused the music
Pocket Minion -> not paused the music
Albert -> paused the music
Flick Champs -> not paused the music
I think Pocket Minion and Flick Champs are two of the popular games.
On the other hand, I've also tested this with a children's book and unfortunately narration continues. I think this _may_ be acceptable for background music but not for narration.
For the last couple of days, I'm moving the iOS port of Gideros' sound system to ObjectAL. I haven't tested this on ObjectAL but most probably it handles this case well and pauses the background music. Therefore this issue will be solved when I finish the moving.
Thanks to @Chang, @moopf and @OZApps for the feedback.
Just downloaded Pocket Minions and the music fades out on my iPhone 4S when I click the home button and resumes again if I go back into the app. Interesting that it's working differently on your iPod touch though.