public static final class AudioRendererEventListener.EventDispatcher extends Object
AudioRendererEventListener
.Constructor and Description |
---|
EventDispatcher(Handler handler,
AudioRendererEventListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
audioSessionId(int audioSessionId)
|
void |
audioTrackUnderrun(int bufferSize,
long bufferSizeMs,
long elapsedSinceLastFeedMs)
|
void |
decoderInitialized(String decoderName,
long initializedTimestampMs,
long initializationDurationMs)
|
void |
disabled(DecoderCounters counters)
|
void |
enabled(DecoderCounters decoderCounters)
|
void |
inputFormatChanged(Format format)
|
public EventDispatcher(@Nullable 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(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)