---
title: mixWithOthers
framework: avfaudio
role: symbol
role_heading: Type Property
path: avfaudio/avaudiosession/categoryoptions-swift.struct/mixwithothers
---

# mixWithOthers

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

## Declaration

```swift
static var mixWithOthers: AVAudioSession.CategoryOptions { get }
```

## Discussion

Discussion You can set this option explicitly only if the audio session category is playAndRecord, playback, or multiRoute. If you set the audio session category to ambient, the session automatically sets this option. Likewise, setting the duckOthers or interruptSpokenAudioAndMixWithOthers 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

### Category options

- [allowAirPlay](avfaudio/avaudiosession/categoryoptions-swift.struct/allowairplay.md)
- [allowBluetooth](avfaudio/avaudiosession/categoryoptions-swift.struct/allowbluetooth.md)
- [allowBluetoothA2DP](avfaudio/avaudiosession/categoryoptions-swift.struct/allowbluetootha2dp.md)
- [allowBluetoothHFP](avfaudio/avaudiosession/categoryoptions-swift.struct/allowbluetoothhfp.md)
- [bluetoothHighQualityRecording](avfaudio/avaudiosession/categoryoptions-swift.struct/bluetoothhighqualityrecording.md)
- [defaultToSpeaker](avfaudio/avaudiosession/categoryoptions-swift.struct/defaulttospeaker.md)
- [duckOthers](avfaudio/avaudiosession/categoryoptions-swift.struct/duckothers.md)
- [farFieldInput](avfaudio/avaudiosession/categoryoptions-swift.struct/farfieldinput.md)
- [interruptSpokenAudioAndMixWithOthers](avfaudio/avaudiosession/categoryoptions-swift.struct/interruptspokenaudioandmixwithothers.md)
- [overrideMutedMicrophoneInterruption](avfaudio/avaudiosession/categoryoptions-swift.struct/overridemutedmicrophoneinterruption.md)
