mixWithOthers
An option that indicates whether audio from this session mixes with audio from active sessions in other audio apps.
Declaration
static var mixWithOthers: AVAudioSession.CategoryOptions { get }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.