How do I enable iPod music while my app is running?

I use SimpleAudioEngine to play my sounds, and I was wondering if there is anyway to check if iPod music is playing when the application starts. If so, I want him to continue playing. I'm starting to think that this can be called a simple engine for some reason, because it does not allow functions like this, where AVAudioEngine does ...

Thanks:)

+4
source share
1 answer

You should check the official Audio Programming Guide and make sure that you are setting the correct session category. You will want to choose a category that allows your audio to mix with your iPod audio.

+1
source

Source: https://habr.com/ru/post/1340608/


All Articles