onAudio

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.