Enumeration Case

AVAudioSessionCategoryOptionMixWithOthers

An option that indicates whether audio from this session mixes with audio from active sessions in other audio apps.

Declaration

AVAudioSessionCategoryOptionMixWithOthers = 0x1

Discussion

You can set this option explicitly only if the audio session category is AVAudioSessionCategoryPlayAndRecord, AVAudioSessionCategoryPlayback, or AVAudioSessionCategoryMultiRoute. If you set the audio session category to AVAudioSessionCategoryAmbient, the session automatically sets this option. Likewise, setting the AVAudioSessionCategoryOptionDuckOthers or AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers options also enables this option.

Clearing this option and then activating your session interrupts other audio sessions. If you set this option, your app mixes its audio with audio playing in background apps, such as the Music app.

See Also

Audio Session Options

AVAudioSessionCategoryOptionDuckOthers

An option that reduces the volume of other audio session while audio from this session plays.

AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers

An option that determines whether to pause spoken audio content from other sessions when your app plays its audio.

AVAudioSessionCategoryOptionAllowBluetooth

An option that determines whether Bluetooth hands-free devices appear as available input routes.

AVAudioSessionCategoryOptionAllowBluetoothA2DP

An option that determines whether you can stream audio from this session to Bluetooth devices that support the Advanced Audio Distribution Profile (A2DP).

AVAudioSessionCategoryOptionAllowAirPlay

An option that determines whether you can stream audio from this session to AirPlay devices.

AVAudioSessionCategoryOptionDefaultToSpeaker

An option that determines whether audio from the session defaults to the built-in speaker instead of the receiver.