Android.Media.AudioTrack.SetLoopPoints Method
Sets the loop points and the loop count.

Syntax

[Android.Runtime.Register("setLoopPoints", "(III)I", "GetSetLoopPoints_IIIHandler")]
[return:Android.Runtime.GeneratedEnum]
public virtual TrackStatus SetLoopPoints (int startInFrames, int endInFrames, int loopCount)

Parameters

startInFrames
loop start marker expressed in frames Zero corresponds to start of buffer. The start marker must not be greater than or equal to the buffer size in frames, or negative.
endInFrames
loop end marker expressed in frames The total buffer size in frames corresponds to end of buffer. The end marker must not be greater than the buffer size in frames. For looping, the end marker must not be less than or equal to the start marker, but to disable looping it is permitted for start marker, end marker, and loop count to all be 0.
loopCount
the number of times the loop is looped. A value of -1 means infinite looping, and 0 disables looping.

Returns

Documentation for this section has not yet been entered.

Remarks

Sets the loop points and the loop count. The loop can be infinite. Similarly to setPlaybackHeadPosition, the track must be stopped or paused for the loop points to be changed, and must use the AudioTrack.MODE_STATIC mode.

[Android Documentation]

Requirements

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