Type Alias

AVAudioSessionMode

Audio session mode identifiers.

Declaration

typedef NSString *AVAudioSessionMode;

Discussion

While categories set the base behaviors for your app, you use modes to assign specialized behavior to an audio session category.

Topics

Audio Session Modes

AVAudioSessionModeDefault

The default audio session mode.

AVAudioSessionModeGameChat

A mode that the GameKit framework sets on behalf of an application that uses GameKit’s voice chat service.

AVAudioSessionModeMeasurement

A mode that indicates that your app is performing measurement of audio input or output.

AVAudioSessionModeMoviePlayback

A mode that indicates that your app is playing back movie content.

AVAudioSessionModeSpokenAudio

A mode used for continuous spoken audio to pause the audio when another app plays a short audio prompt.

AVAudioSessionModeVideoChat

A mode that indicates that your app is engaging in online video conferencing.

AVAudioSessionModeVideoRecording

A mode that indicates that your app is recording a movie.

AVAudioSessionModeVoiceChat

A mode that indicates that your app is performing two-way voice communication, such as using Voice over Internet Protocol (VoIP).

AVAudioSessionModeVoicePrompt

A mode that indicates that your app plays audio using text-to-speech.

See Also

Configuring the Audio Session

category

The current audio session category.

- setCategory:error:

Sets the audio session’s category.

availableCategories

The audio session categories available on the current device.

AVAudioSessionCategory

Audio session category identifiers.

categoryOptions

The set of options associated with the current audio session category.

- setCategory:withOptions:error:

Sets the audio session’s category with the specified options.

AVAudioSessionCategoryOptions

Constants that specify optional audio behaviors.

mode

The current audio session’s mode.

- setMode:error:

Sets the audio session’s mode.

- setCategory:mode:options:error:

Sets the audio session’s category, mode, and options.

availableModes

The audio session modes available on the device.

routeSharingPolicy

The current route-sharing policy.

- setCategory:mode:routeSharingPolicy:options:error:

Sets the session category, mode, route-sharing policy, and options.

AVAudioSessionRouteSharingPolicy

Cases that indicate the possible route-sharing policies for an audio session.