AVAudioPlayer.NumberOfLoops Property

Definition

The number of times the sound should repeat.

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

Property Value

nint

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