iPhone AVAudioPlayer stopping background music

Viewed 11359

So I've just noticed that on my iPod Touch, when my app triggers a short wav file to play using AVAudioPlayer, the music gets paused. Is this normal?

I can't find any reference to this, and it seems like it would be noted somewhere. Is there a way to keep the music going while I play my sounds?

4 Answers

Swift 5 equivalent:

try? AVAudioSession.sharedInstance().setCategory(.ambient)
Related