Contents

kAudioSessionProperty_OverrideCategoryDefaultToSpeaker

Specifies whether or not to route audio to the speaker (instead of to the receiver) when no other audio route, such as a headset, is connected.

Declaration

var kAudioSessionProperty_OverrideCategoryDefaultToSpeaker: Int { get }

Discussion

A read/write UInt32 value. By default, the value of this property is FALSE (0).

This property retains its value through an audio route change (such as when plugging in or unplugging a headset), and upon interruption; it reverts to its default value only upon an audio session category change. This property can be used only with the kAudioSessionCategory_PlayAndRecord (or the equivalent playAndRecord) category.

See also kAudioSessionProperty_OverrideAudioRoute.

See Also

Constants