AudioOutput.Listener


interface AudioOutput.Listener


Listener for AudioOutput events.

Summary

Public functions

Unit

Called when isOffloadedPlayback is true and new data is requested.

Unit

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

Unit
onPositionAdvancing(playoutStartSystemTimeMs: Long)

Called when the audio position is advancing.

Unit

Called when the audio output has been fully released.

Unit

Called when the audio output had an underrun.

Public functions

onOffloadDataRequest

fun onOffloadDataRequest(): Unit

Called when isOffloadedPlayback is true and new data is requested.

onOffloadPresentationEnded

fun onOffloadPresentationEnded(): Unit

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

onPositionAdvancing

fun onPositionAdvancing(playoutStartSystemTimeMs: Long): Unit

Called when the audio position is advancing.

Parameters
playoutStartSystemTimeMs: Long

The currentTimeMillis when the playout started.

onReleased

fun onReleased(): Unit

Called when the audio output has been fully released.

onUnderrun

fun onUnderrun(): Unit

Called when the audio output had an underrun.