<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/CategoryOptions-swift.struct/mixWithOthers",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@E@AVAudioSessionCategoryOptions@AVAudioSessionCategoryOptionMixWithOthers"
  },
  "title" : "mixWithOthers"
}
-->

# mixWithOthers

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

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

## Discussion

You can set this option explicitly only if the audio session category is [`playAndRecord`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playAndRecord), [`playback`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playback), or [`multiRoute`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/multiRoute). If you set the audio session category to [`ambient`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/ambient), the session automatically sets this option. Likewise, setting the [`duckOthers`](/documentation/AVFAudio/AVAudioSession/CategoryOptions-swift.struct/duckOthers) or [`interruptSpokenAudioAndMixWithOthers`](/documentation/AVFAudio/AVAudioSession/CategoryOptions-swift.struct/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)