AVAudioPlayer and the home button?
Just out of curiosity, if I'm using the AVAudioPlayer to play some music, do I need to
shut it off myself when the home button is pressed?
Because, when I press the home button, the music stops playing automatically. And when I click
on the app icon, the music automatically starts playing again. I'm not doing anything myself.
Category is set to AVAudioSessionCategoryAmbient. None of my AVAudioPlayer delegates seem to be firing,
such as audioPlayerBeginInterruption. I'm guessing the home button does not call them?
I would just like to know if this is supposed to work like this, or if I'm suffering some kind
of memory leak by not doing anything.
|