onAudioReady

open override fun onAudioReady(buffer: FloatArray, numFrames: Int): Int

Copies interleaved frames into a reused scratch buffer. The analysis worker snapshots that buffer on Dispatchers.Default so this callback does not allocate except when the scratch must grow.