AudioOutput.Listener


public interface AudioOutput.Listener


Listener for AudioOutput events.

Summary

Public methods

abstract void

Called when isOffloadedPlayback is true and new data is requested.

abstract void

Called when isOffloadedPlayback is true and all previously written data has been decoded and written to the output device.

abstract void
onPositionAdvancing(long playoutStartSystemTimeMs)

Called when the audio position is advancing.

abstract void

Called when the audio output has been fully released.

abstract void

Called when the audio output had an underrun.

Public methods

onOffloadDataRequest

abstract void onOffloadDataRequest()

Called when isOffloadedPlayback is true and new data is requested.

onOffloadPresentationEnded

abstract void onOffloadPresentationEnded()

Called when isOffloadedPlayback is true and all previously written data has been decoded and written to the output device.

onPositionAdvancing

abstract void onPositionAdvancing(long playoutStartSystemTimeMs)

Called when the audio position is advancing.

Parameters
long playoutStartSystemTimeMs

The currentTimeMillis when the playout started.

onReleased

abstract void onReleased()

Called when the audio output has been fully released.

onUnderrun

abstract void onUnderrun()

Called when the audio output had an underrun.