onAudioDataRecorded
abstract fun onAudioDataRecorded(audioFormat: Int, channelCount: Int, sampleRate: Int, @NonNull audioBuffer: ByteBuffer)
Invoked after an audio sample is recorded. Can be used to manipulate the ByteBuffer before it's fed into WebRTC. Currently the audio in the ByteBuffer is always PCM 16bit and the buffer sample size is ~10ms.
Parameters
audioFormat
format in android.media.AudioFormat