public static final class AudioRendererEventListener.EventDispatcher
extends java.lang.Object
AudioRendererEventListener.| Constructor and Description |
|---|
EventDispatcher(android.os.Handler handler,
AudioRendererEventListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
audioSessionId(int audioSessionId)
|
void |
audioTrackUnderrun(int bufferSize,
long bufferSizeMs,
long elapsedSinceLastFeedMs)
|
void |
decoderInitialized(java.lang.String decoderName,
long initializedTimestampMs,
long initializationDurationMs)
|
void |
disabled(DecoderCounters counters)
|
void |
enabled(DecoderCounters decoderCounters)
|
void |
inputFormatChanged(Format format)
|
public EventDispatcher(@Nullable
android.os.Handler handler,
@Nullable
AudioRendererEventListener listener)
handler - A handler for dispatching events, or null if creating a dummy instance.listener - The listener to which events should be dispatched, or null if creating a
dummy instance.public void enabled(DecoderCounters decoderCounters)
public void decoderInitialized(java.lang.String decoderName,
long initializedTimestampMs,
long initializationDurationMs)
public void inputFormatChanged(Format format)
public void audioTrackUnderrun(int bufferSize,
long bufferSizeMs,
long elapsedSinceLastFeedMs)
public void disabled(DecoderCounters counters)
public void audioSessionId(int audioSessionId)