InputAudioFilter
Manipulates the audio data before it's fed into WebRTC.
Inheritors
Functions
Link copied to clipboard
abstract fun applyFilter(audioFormat: Int, channelCount: Int, sampleRate: Int, sampleData: 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.