4
\$\begingroup\$

My game doesn't have any music but it does have sound effects. Right now if I power up Pandora and then start a song and then switch to my game it will stop the Pandora song. Is there a special way I need to play my sound fx so that the music from Pandora will keep playing while my game is running?

\$\endgroup\$
3
\$\begingroup\$

If you set up your Audio Session type to AVAudioSessionCategoryAmbient you'll get mixing with whatever's playing in the background:

http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVAudioSession_ClassReference/Reference/Reference.html#//apple_ref/c/data/AVAudioSessionCategoryAmbient

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.