AVAudioPlayer.Rate 属性

定义

相对于源声音的播放速率。

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

属性值

默认值为 1.0。 值为 0.5 为半速,值为 2.0 为双速。

属性

注解

应用程序开发人员必须另外将 设置为 EnableRatetrue 才能操作此属性。

适用于