Contents

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