User guide
Handling Interruptions From Siri 27
The Interruption Life Cycle 28
OpenAL and Audio Interruptions 29
Using the AVAudioPlayer Class to Handle Audio Interruptions 29
Responding to a Media Server Reset 30
Providing Guidelines to the User 30
Optimizing Your App for Device Hardware 32
Choosing Preferred Audio Hardware Values 32
Setting Preferred Hardware Values 33
Querying Hardware Characteristics 34
Specifying Preferred Hardware I/O Buffer Duration 35
Obtaining and Using the Hardware Sample Rate 35
Running Your App in the Simulator 36
Responding to Route Changes 37
Varieties of Audio Hardware Route Change 37
Responding to Audio Hardware Route Changes 38
Fine-Tuning an Audio Session for Players 40
Working with Music Players 40
Working with Movie Players 41
Using the Media Player Framework Exclusively 42
Audio Guidelines By App Type 43
Audio Guidelines for Game Apps 43
Audio Guidelines for User-Controlled Playback and Recording Apps 43
Audio Guidelines for VoIP and Chat Apps 44
Audio Guidelines for Metering Apps 45
Audio Guidelines for Browser-like Apps That Sometimes Play Audio 45
Audio Guidelines for Navigation and Workout Apps 46
Audio Guidelines for Cooperative Music Apps 46
Audio Session Categories and Modes 47
Document Revision History 50
Swift 5
2014-09-17 | Copyright © 2014 Apple Inc. All Rights Reserved.
3
Contents