---
title: "AudioServicesCreateSystemSoundID(_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/audioservicescreatesystemsoundid(_:_:)"
---

# AudioServicesCreateSystemSoundID(_:_:)

Creates a system sound object.

## Declaration

```swift
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

Return Value A result code.

## See Also

### Creating and Disposing of System Sound Objects

- [AudioServicesDisposeSystemSoundID(_:)](audiotoolbox/audioservicesdisposesystemsoundid(_:).md)
- [SystemSoundID](audiotoolbox/systemsoundid.md)
- [System Sounds](audiotoolbox/1405222-system-sounds.md)
- [Alert Sound Identifiers](audiotoolbox/1618202-alert-sound-identifiers.md)
