---
title: kAudioQueueParam_VolumeRampTime
framework: audiotoolbox
role: symbol
role_heading: Global Variable
path: audiotoolbox/kaudioqueueparam_volumeramptime
---

# kAudioQueueParam_VolumeRampTime

The number of seconds over which a volume change is ramped.

## Declaration

```swift
var kAudioQueueParam_VolumeRampTime: AudioQueueParameterID { get }
```

## Discussion

Discussion For example, to fade from unity gain down to silence over the course of 1 second, set this parameter to 1 and then set the kAudioQueueParam_Volume parameter to 0.

## See Also

### Constants

- [kAudioQueueParam_Volume](audiotoolbox/kaudioqueueparam_volume.md)
- [kAudioQueueParam_PlayRate](audiotoolbox/kaudioqueueparam_playrate.md)
- [kAudioQueueParam_Pitch](audiotoolbox/kaudioqueueparam_pitch.md)
- [kAudioQueueParam_Pan](audiotoolbox/kaudioqueueparam_pan.md)
