Most visited

Recently visited

Added in API level 23

MediaSync.Callback

public static abstract class MediaSync.Callback
extends Object

java.lang.Object
   ↳ android.media.MediaSync.Callback


MediaSync回调界面。 用于异步通知用户各种MediaSync事件。

Summary

Public constructors

MediaSync.Callback()

Public methods

abstract void onAudioBufferConsumed(MediaSync sync, ByteBuffer audioBuffer, int bufferId)

在返回已消耗的音频缓冲区时调用。

Inherited methods

From class java.lang.Object

Public constructors

MediaSync.Callback

Added in API level 23
MediaSync.Callback ()

Public methods

onAudioBufferConsumed

Added in API level 23
void onAudioBufferConsumed (MediaSync sync, 
                ByteBuffer audioBuffer, 
                int bufferId)

在返回已消耗的音频缓冲区时调用。

Parameters
sync MediaSync: The MediaSync object.
audioBuffer ByteBuffer: The returned audio buffer.
bufferId int: The ID associated with audioBuffer as passed into queueAudio(ByteBuffer, int, long).

Hooray!