Udostępnij za pośrednictwem


AudioTrack.StreamEventCallback.OnPresentationEnded(AudioTrack) Method

Definition

Called when all the buffers of an offloaded track that were queued in the audio system (e.

[Android.Runtime.Register("onPresentationEnded", "(Landroid/media/AudioTrack;)V", "GetOnPresentationEnded_Landroid_media_AudioTrack_Handler", ApiSince=29)]
public virtual void OnPresentationEnded (Android.Media.AudioTrack track);
[<Android.Runtime.Register("onPresentationEnded", "(Landroid/media/AudioTrack;)V", "GetOnPresentationEnded_Landroid_media_AudioTrack_Handler", ApiSince=29)>]
abstract member OnPresentationEnded : Android.Media.AudioTrack -> unit
override this.OnPresentationEnded : Android.Media.AudioTrack -> unit

Parameters

track
AudioTrack

the AudioTrack on which the event happened.

Attributes

Remarks

Called when all the buffers of an offloaded track that were queued in the audio system (e.g. the combination of the Android audio framework and the device's audio hardware) have been played after AudioTrack#stop() has been called.

Java documentation for android.media.AudioTrack.StreamEventCallback.onPresentationEnded(android.media.AudioTrack).

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