Contents

rate

The audio player’s playback rate.

Declaration

var rate: Float { get set }

Discussion

To set an audio player’s playback rate, you must first enable the rate adjustment by setting its enableRate property to true.

The default value of this property is 1.0, which indicates that audio playback occurs at standard speed. This property supports values in the range of 0.5 for half-speed playback to 2.0 for double-speed playback.

See Also

Configuring playback settings