---
title: enableRate
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudioplayer/enablerate
---

# enableRate

A Boolean value that indicates whether you can adjust the playback rate of the audio player.

## Declaration

```swift
var enableRate: Bool { get set }
```

## Discussion

Discussion To enable modifying the player’s rate, set this property to true after you create the player, but before you call prepareToPlay().

## See Also

### Configuring playback settings

- [volume](avfaudio/avaudioplayer/volume.md)
- [setVolume(_:fadeDuration:)](avfaudio/avaudioplayer/setvolume(_:fadeduration:).md)
- [pan](avfaudio/avaudioplayer/pan.md)
- [rate](avfaudio/avaudioplayer/rate.md)
- [numberOfLoops](avfaudio/avaudioplayer/numberofloops.md)
