---
title: CHHapticAudioResourceKeyUseVolumeEnvelope
framework: corehaptics
role: symbol
role_heading: Global Variable
path: corehaptics/chhapticaudioresourcekeyusevolumeenvelope
---

# CHHapticAudioResourceKeyUseVolumeEnvelope

A key for a Boolean value that indicates whether audio file playback fades in and out using an envelope.

## Declaration

```swift
let CHHapticAudioResourceKeyUseVolumeEnvelope: String
```

## Discussion

Discussion Fading, or ramping, the volume of an audio resource can prevent clicks during playback. It’s also useful in cases where the app modulates the envelope to use different attack and release times. The default value is true.

## See Also

### Audio Resource Keys

- [CHHapticAudioResourceKeyLoopEnabled](corehaptics/chhapticaudioresourcekeyloopenabled.md)
- [CHHapticAudioResourceKey](corehaptics/chhapticaudioresourcekey.md)
