AudioScanSink

fun interface AudioScanSink

Receives the decoded audio of scanAudio, one block at a time, in media order.

Functions

Link copied to clipboard
abstract suspend fun onAudio(pts: Pts, interleaved: FloatArray, frames: Int, format: AudioFormat)

interleaved holds frames sample frames and is borrowed: copy whatever outlives the call. The scan reads nothing more while this runs, so suspending here paces the whole scan.