AVAudioPlayer.Rate Property

Definition

The playback rate relative to the source sound.

[get: Foundation.Export("rate")]
[set: Foundation.Export("setRate:")]
public virtual float Rate { get; set; }
member this.Rate : single with get, set

Property Value

Single

The default value is 1.0. A value of 0.5 is half-speed, a value of 2.0 is double-speed.

Attributes

Remarks

Application developers must additionally set EnableRate to true to manipulate this property.

Applies to