On Aug 18, 2017, at 10:10 , Eric E. Dolecki <edole...@gmail.com> wrote: > > try audioSession.setCategory(AVAudioSessionCategoryPlayback, with: > [.allowBluetooth, .mixWithOthers])
According to the documentation, AVAudioSessionCategoryPlayback will “interrupt” other audio that *doesn’t* have the mixWithOthers option, and this is defined here: https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html <https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html> That makes it sound like it’s up to the *other* application to resume after an interruption, and it’s not under your control. What’s odd is that the first table here: https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionCategoriesandModes/AudioSessionCategoriesandModes.html <https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionCategoriesandModes/AudioSessionCategoriesandModes.html> says this behavior can be changed by an “override switch” without saying what that means. This page: https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionBasics/AudioSessionBasics.html <https://developer.apple.com/library/content/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/AudioSessionBasics/AudioSessionBasics.html> suggests that it might mean the category options, but it’s not clear. Have you tried the “duckOthers” option, as well as or instead of “mixWithOthers”? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com