AVAudioSessionCategory Enum

Definition

Enumeration defining the various audio categories supported by AVAudioSession.

public enum AVAudioSessionCategory
type AVAudioSessionCategory = 
Inheritance
AVAudioSessionCategory

Fields

Ambient 0

Use this category if playing audio is not your application's main use and if your application can be used with the sound off. This allows background music to be mixed with the audio your application produces.

AudioProcessing 5

Use this category when you want to use the hardware accelerated audio support to perform audio conversions.

MultiRoute 6
PlayAndRecord 4

Used to perform both playback and recording at the same time, for example for live chat applications.

Playback 2

Use this if the main use of your application is to play back music.

Record 3

Used to record audio. This will prevent background audio and messages from playing back.

SoloAmbient 1

This is the default audio session category.

Remarks

These enumeration values are used with the strongly typed version of SetCategory(String, String, AVAudioSessionRouteSharingPolicy, AVAudioSessionCategoryOptions, NSError) methods.

Applies to