Udostępnij za pośrednictwem


MediaSync.Callback.OnAudioBufferConsumed(MediaSync, ByteBuffer, Int32) Method

Definition

Called when returning an audio buffer which has been consumed.

[Android.Runtime.Register("onAudioBufferConsumed", "(Landroid/media/MediaSync;Ljava/nio/ByteBuffer;I)V", "GetOnAudioBufferConsumed_Landroid_media_MediaSync_Ljava_nio_ByteBuffer_IHandler", ApiSince=23)]
public abstract void OnAudioBufferConsumed (Android.Media.MediaSync sync, Java.Nio.ByteBuffer audioBuffer, int bufferId);
[<Android.Runtime.Register("onAudioBufferConsumed", "(Landroid/media/MediaSync;Ljava/nio/ByteBuffer;I)V", "GetOnAudioBufferConsumed_Landroid_media_MediaSync_Ljava_nio_ByteBuffer_IHandler", ApiSince=23)>]
abstract member OnAudioBufferConsumed : Android.Media.MediaSync * Java.Nio.ByteBuffer * int -> unit

Parameters

sync
MediaSync

The MediaSync object.

audioBuffer
ByteBuffer

The returned audio buffer.

bufferId
Int32

The ID associated with audioBuffer as passed into MediaSync#queueAudio.

Attributes

Remarks

Called when returning an audio buffer which has been consumed.

Java documentation for android.media.MediaSync.Callback.onAudioBufferConsumed(android.media.MediaSync, java.nio.ByteBuffer, 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