Audio Session Modes

Mode identifiers for audio sessions, used to set the session's mode property.

Overview

While categories set the base behaviors for your app, modes are used to specialize the behavior of an audio session category.

Topics

Constants

static let `default`: AVAudioSession.Mode

The default audio session mode.

static let voiceChat: AVAudioSession.Mode

Specify this mode if your app is performing two-way voice communication, such as using Voice over Internet Protocol (VoIP).

static let videoChat: AVAudioSession.Mode

Specify this mode if your app is engaging in online video conferencing.

static let gameChat: AVAudioSession.Mode

This mode is set by Game Kit on behalf of an application that uses Game Kit's voice chat service.

static let videoRecording: AVAudioSession.Mode

Specify this mode if your app is recording a movie.

static let measurement: AVAudioSession.Mode

Specify this mode if your app is performing measurement of audio input or output.

static let moviePlayback: AVAudioSession.Mode

Specify this mode if your app is playing back movie content.

static let spokenAudio: AVAudioSession.Mode

A mode used for continuous spoken audio when you want to pause your audio when another app plays a short amount of spoken audio.