Function

AudioServicesCreateSystemSoundID(_:_:)

Creates a system sound object.

Declaration

func AudioServicesCreateSystemSoundID(_ inFileURL: CFURL, _ outSystemSoundID: UnsafeMutablePointer<SystemSoundID>) -> OSStatus

Parameters

inFileURL

The URL of the audio file to play.

outSystemSoundID

On output, a system sound object associated with the specified audio file.

Return Value

A result code.

See Also

Creating and Disposing of System Sound Objects

func AudioServicesDisposeSystemSoundID(SystemSoundID) -> OSStatus

Disposes of a system sound object and associated resources.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software