共用方式為


AudioTrack.StartThresholdInFrames Property

Definition

Returns the streaming start threshold of the AudioTrack.

public virtual int StartThresholdInFrames { [Android.Runtime.Register("getStartThresholdInFrames", "()I", "GetGetStartThresholdInFramesHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getStartThresholdInFrames", "()I", "GetGetStartThresholdInFramesHandler", ApiSince=31)>]
member this.StartThresholdInFrames : int

Property Value

the current 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

Returns the streaming start threshold of the AudioTrack.

The streaming start threshold is the buffer level that the written audio data must reach for audio streaming to start after #play() is called. When an AudioTrack is created, the streaming start threshold is the buffer capacity in frames. If the buffer size in frames is reduced by #setBufferSizeInFrames(int) to a value smaller than the start threshold then that value will be used instead for the streaming start threshold.

For compressed streams, the size of a frame is considered to be exactly one byte.

Java documentation for android.media.AudioTrack.getStartThresholdInFrames().

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