Compartir a través de


AudioTrack.Flush Method

Definition

Flushes the audio data currently queued for playback.

[Android.Runtime.Register("flush", "()V", "GetFlushHandler")]
public virtual void Flush ();
[<Android.Runtime.Register("flush", "()V", "GetFlushHandler")>]
abstract member Flush : unit -> unit
override this.Flush : unit -> unit
Attributes

Remarks

Flushes the audio data currently queued for playback. Any data that has been written but not yet presented will be discarded. No-op if not stopped or paused, or if the track's creation mode is not #MODE_STREAM. <BR> Note that although data written but not yet presented is discarded, there is no guarantee that all of the buffer space formerly used by that data is available for a subsequent write. For example, a call to #write(byte[], int, int) with sizeInBytes less than or equal to the total buffer size may return a short actual transfer count.

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

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