AVAudioPlayer.NumberOfLoops 属性

定义

声音应重复的次数。

public virtual nint NumberOfLoops { [Foundation.Export("numberOfLoops")] get; [Foundation.Export("setNumberOfLoops:")] set; }
member this.NumberOfLoops : nint with get, set

属性值

System.System.IntPtr System.nativeint

默认值为 0。

属性

注解

此从零开始的值指定声音在初始播放后重复播放的次数。 换句话说,值为 1 将导致声音播放 2 次。

适用于