Share via


AVAudioPlayer.NumberOfLoops Property

Definition

The number of times the sound should repeat.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr NumberOfLoops { [Foundation.Export("numberOfLoops")] get; [Foundation.Export("setNumberOfLoops:")] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("numberOfLoops")>]
[<set: Foundation.Export("setNumberOfLoops:")>]
member this.NumberOfLoops : nativeint with get, set

Property Value

IntPtr

nativeint

The default value is 0.

Attributes

Remarks

This zero-based value specifies the number of times the sound is repeated after its initial playing. In other words, a value of 1 will result in the sound being played 2 times.

Applies to