onData

abstract fun onData(audioData: ByteBuffer, bitsPerSample: Int, sampleRate: Int, numberOfChannels: Int, numberOfFrames: Int, absoluteCaptureTimestampMs: Long)

Implementations should copy the audio data into a local copy if they wish to use the data after this function returns.