Android.Media.SoundPool.SetLoop Method
Set loop mode.

Syntax

[Android.Runtime.Register("setLoop", "(II)V", "")]
public void SetLoop (int streamID, int loop)

Parameters

streamID
a streamID returned by the play() function
loop
loop mode (0 = no loop, -1 = loop forever)

Remarks

Set loop mode. Change the loop mode. A loop value of -1 means loop forever, a value of 0 means don't loop, other values indicate the number of repeats, e.g. a value of 1 plays the audio twice. If the stream does not exist, it will have no effect.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1