I have a problem where I play background music using SPSoundChannel (which I know is actually played using SPAVSoundChannel), I pause it when application resigns active, and then when application becomes active again, it simply continue playing, though I didn't unpause it.
I want the user to press the play button before the BG music unpauses.
I tried to debug this a bit, suspecting that the
- (void)audioPlayerEndInterruption:(AVAudioPlayer *)player
method was invoked when becoming active and causing this (because it resumes playback even if I paused the music myself before the interruption), but it's not the case - this method is not being invoked.
I decided to open this thread before trying to dig in deeper, maybe someone here already explored this.
So, any suggestions?
BTW, the game I'm working on is almost ready... I'll keep you updated 🙂