AudioTrack.SetOffloadEndOfStream Method

Definition

Declares that the last write() operation on this track provided the last buffer of this stream.

[Android.Runtime.Register("setOffloadEndOfStream", "()V", "GetSetOffloadEndOfStreamHandler", ApiSince=29)]
public virtual void SetOffloadEndOfStream ();
[<Android.Runtime.Register("setOffloadEndOfStream", "()V", "GetSetOffloadEndOfStreamHandler", ApiSince=29)>]
abstract member SetOffloadEndOfStream : unit -> unit
override this.SetOffloadEndOfStream : unit -> unit
Attributes

Remarks

Declares that the last write() operation on this track provided the last buffer of this stream. After the end of stream, previously set padding and delay values are ignored. Can only be called only if the AudioTrack is opened in offload mode Builder#setOffloadedPlayback(boolean). Can only be called only if the AudioTrack is in state #PLAYSTATE_PLAYING#getPlayState(). Use this method in the same thread as any write() operation.

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

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