AudioCapturerContext

interface AudioCapturerContext

This interface defines the API to be used for writing out captured PCM audio data to the underlying audio subsystem. While the buffer can be of any size, for best results, 10ms is advised.

Functions

context
Link copied to clipboard
abstract fun context(): Context
This method provides the activity or application context provided to the NoiseCancellationPlugin upon its construction.
write
Link copied to clipboard
abstract fun write(audioBuffer: ByteBuffer): Int
This method needs to be called by AudioIORunnable implementation to provide captured data to the media engine.