---
title: kSystemSoundID_UserPreferredAlert
framework: audiotoolbox
role: symbol
role_heading: Global Variable
path: audiotoolbox/ksystemsoundid_userpreferredalert
---

# kSystemSoundID_UserPreferredAlert

On the desktop, use this constant with the AudioServicesPlayAlertSound(_:) function to play the alert specified in the Sound preference pane.

## Declaration

```swift
var kSystemSoundID_UserPreferredAlert: SystemSoundID { get }
```

## See Also

### Constants

- [kSystemSoundID_FlashScreen](audiotoolbox/ksystemsoundid_flashscreen.md)
- [kUserPreferredAlert](audiotoolbox/kuserpreferredalert.md)
