I looked around and found vaguely similar questions but nothing quite the same...I do apologize if I missed the answer somewhere.
I am finishing up a game I wrote in Swift using SpriteKit.
Most other games that I've played, I can have itunes or something playing music in the background, and still hear it while I am playing a game.
As I am playing my game, I'm noticing that it automatically shuts of the audio from other apps.
I am not using AVAudioPlayer
for the sound, as I currently only have a small amount of audio effects so I was just using an SKAction.playsoundfilenamed action instead.
I do have logic in there to turn my sounds on and off, but that is simply using some internal if/else logic.
I'm wondering if perhaps there is some AVAudio
property I can set that will allow other apps audio to continue playing when mine is open? I can't find this in the documentation.
Thanks!