AVAudioPlayer.NumberOfLoops Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The number of times the sound should repeat.
public virtual nint NumberOfLoops { [Foundation.Export("numberOfLoops")] get; [Foundation.Export("setNumberOfLoops:")] set; }
member this.NumberOfLoops : nint with get, set
Property Value
System.System.IntPtr
System.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.