User guide
You tell iOS your app’s audio intentions by designating a category for your audio session. Table B-1 provides
details on each of the categories. The default category, AVAudioSessionCategorySoloAmbient, is shaded.
For an explanation of how categories work, see Working with Categories (page 18). For an explanation of the
mixing override switch, see Choosing the Best Category (page 18).
Table B-1 Audio session category behavior
Allows audio
input
(recording) and
output
(playback)
Interrupts
non-mixable
apps audio
Silenced by
the
Ring/Silent
switch and
by screen
locking
see
note
Category identifiers
Output onlyNoYesAVAudioSessionCategoryAmbient
No input and
no output
Yes–AVAudioSessionCategoryAudio-
Processing
Input and
output
YesNoAVAudioSessionCategoryMultiRoute
Input and
output
Yes by default;
no by using
override
switch
NoAVAudioSessionCategoryPlayAnd-
Record
Output onlyYes by default;
no by using
override
switch
NoAVAudioSessionCategoryPlayback
2014-09-17 | Copyright © 2014 Apple Inc. All Rights Reserved.
47
Audio Session Categories and Modes