Audio Services
Play short sounds or trigger a vibration effect on iOS devices with the appropriate hardware.
Overview
System Sound Services provides a C interface for playing short sounds and for invoking vibration on iOS devices that support vibration.
You can use System Sound Services to play short (30 seconds or shorter) sounds. The interface does not provide level, positioning, looping, or timing control, and does not support simultaneous playback: You can play only one sound at a time. You can use System Sound Services to provide audible alerts. On some iOS devices, alerts can include vibration.
Topics
Creating and Disposing of System Sound Objects
AudioServicesCreateSystemSoundID(_:_:)AudioServicesDisposeSystemSoundID(_:)SystemSoundIDSystem SoundsAlert Sound Identifiers
Playing Sounds
AudioServicesPlayAlertSoundWithCompletion(_:_:)AudioServicesPlaySystemSoundWithCompletion(_:_:)AudioServicesPlayAlertSound(_:)AudioServicesPlaySystemSound(_:)
Adding and Removing System Sound Callbacks
AudioServicesAddSystemSoundCompletion(_:_:_:_:_:)AudioServicesRemoveSystemSoundCompletion(_:)AudioServicesSystemSoundCompletionProc
Managing System Sound Services Properties
AudioServicesGetPropertyInfo(_:_:_:_:_:)AudioServicesGetProperty(_:_:_:_:_:)AudioServicesSetProperty(_:_:_:_:_:)AudioServicesPropertyIDSystem Sound Services Property IdentifiersAudio Hardware Services Properties