MediaSync.Callback
public static abstract class MediaSync.Callback
extends Object
MediaSync回调界面。 用于异步通知用户各种MediaSync事件。
Summary
Public constructors
MediaSync.Callback
MediaSync.Callback ()
Public methods
onAudioBufferConsumed
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) . |