Enumeration

AVAudioSessionRouteSharingPolicy

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

Declaration

typedef enum AVAudioSessionRouteSharingPolicy : NSUInteger {
    ...
} AVAudioSessionRouteSharingPolicy;

Overview

A route-sharing policy allows you to specify that an audio session should route its output to somewhere other than the default system output when alternative routes are available.

Topics

Route-Sharing Policies

AVAudioSessionRouteSharingPolicyDefault

A policy that follows standard rules for routing audio output.

AVAudioSessionRouteSharingPolicyLongFormAudio

A policy that routes output to the shared long-form audio output.

AVAudioSessionRouteSharingPolicyLongFormVideo

A policy that routes output to the shared long-form video output.

AVAudioSessionRouteSharingPolicyIndependent

A policy in which the route picker UI directs videos to a wireless route.

AVAudioSessionRouteSharingPolicyLongForm

A policy that routes output to the shared long-form audio output.

Deprecated

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.

AVAudioSessionMode

Audio session mode identifiers.

routeSharingPolicy

The current route-sharing policy.

- setCategory:mode:routeSharingPolicy:options:error:

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