---
title: "AudioServicesDisposeSystemSoundID(_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/audioservicesdisposesystemsoundid(_:)"
---

# AudioServicesDisposeSystemSoundID(_:)

Disposes of a system sound object and associated resources.

## Declaration

```swift
func AudioServicesDisposeSystemSoundID(_ inSystemSoundID: SystemSoundID) -> OSStatus
```

## Parameters

- `inSystemSoundID`: The system sound object to dispose of.

## Return Value

Return Value A result code.

## See Also

### Creating and Disposing of System Sound Objects

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