Author
Travis Kirton


Rate

This example shows how you can change the playback rate of an audio player.

Prior to changing the rate you’ll need to enable the player to have a different rate.

player.enableRate = true
player.rate = 0.25

Example

let audioPlayer = AudioPlayer("C4Loop.aif")!
override func setup() {
    audioPlayer.enableRate = true
    audioPlayer.rate = 0.25
    audioPlayer.play()
}