AudioBlockSink

fun interface AudioBlockSink

What scanAudioAsync hands the decoded sound to, on a background thread.

Functions

Link copied to clipboard
abstract fun onAudio(ptsMicros: Long, interleaved: FloatArray, frames: Int, format: AudioFormat)

interleaved holds frames sample frames starting at ptsMicros and is borrowed: copy whatever outlives the call. The scan waits while this runs.