---
title: "defaultCriticalSound(withAudioVolume:)"
framework: usernotifications
role: symbol
role_heading: Type Method
path: "usernotifications/unnotificationsound/defaultcriticalsound(withaudiovolume:)"
---

# defaultCriticalSound(withAudioVolume:)

Creates a sound object that plays the default critical alert sound at the volume you specify.

## Declaration

```swift
class func defaultCriticalSound(withAudioVolume volume: Float) -> Self
```

## Parameters

- `volume`: The volume must be a value between 0.0 and 1.0.

## Return Value

Return Value A sound object representing the default critical alert sound at the specified volume.

## Discussion

Discussion Critical alerts ignore the mute switch and Do Not Disturb. They require a special entitlement issued by Apple.

## See Also

### Getting Critical Sounds

- [defaultCritical](usernotifications/unnotificationsound/defaultcritical.md)
- [criticalSoundNamed(_:)](usernotifications/unnotificationsound/criticalsoundnamed(_:).md)
- [criticalSoundNamed(_:withAudioVolume:)](usernotifications/unnotificationsound/criticalsoundnamed(_:withaudiovolume:).md)
