AudioTrack.SetStartThresholdInFrames(Int32) Method

Definition

Sets the streaming start threshold for an <code>AudioTrack</code>.

[Android.Runtime.Register("setStartThresholdInFrames", "(I)I", "GetSetStartThresholdInFrames_IHandler", ApiSince=31)]
public virtual int SetStartThresholdInFrames (int startThresholdInFrames);
[<Android.Runtime.Register("setStartThresholdInFrames", "(I)I", "GetSetStartThresholdInFrames_IHandler", ApiSince=31)>]
abstract member SetStartThresholdInFrames : int -> int
override this.SetStartThresholdInFrames : int -> int

Parameters

startThresholdInFrames
Int32

the desired start threshold.

Returns

Int32

the actual start threshold in frames value. This is an integer between 1 to the buffer capacity (see #getBufferCapacityInFrames()), and might change if the output sink changes after track creation.

Attributes

Remarks

Java documentation for android.media.AudioTrack.setStartThresholdInFrames(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to