Global Variable

AVAudioSessionCategoryAmbient

The category for an app in which sound playback is nonprimary—that is, your app also works with the sound turned off.

Declaration

const AVAudioSessionCategory AVAudioSessionCategoryAmbient;

Discussion

This category is also appropriate for “play-along” apps, such as a virtual piano that a user plays while the Music app is playing. When you use this category, audio from other apps mixes with your audio. Screen locking and the Silent switch (on iPhone, the Ring/Silent switch) silence your audio.

See Also

Audio Session Categories

AVAudioSessionCategoryMultiRoute

The category for routing distinct streams of audio data to different output devices at the same time.

AVAudioSessionCategoryPlayAndRecord

The category for recording (input) and playback (output) of audio, such as for a Voice over Internet Protocol (VoIP) app.

AVAudioSessionCategoryPlayback

The category for playing recorded music or other sounds that are central to the successful use of your app.

AVAudioSessionCategoryRecord

The category for recording audio; this category silences playback audio.

AVAudioSessionCategorySoloAmbient

The default audio session category.

AVAudioSessionCategoryAudioProcessing

The category for using an audio hardware codec or signal processor while not playing or recording audio.

Deprecated