AudioRendererContext

interface AudioRendererContext

This interface defines the API to be used for read PCM audio data to be played to the user. 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 applicaiton context provided to the NoiseCancellationPlugin upon its construction.
read
Link copied to clipboard
abstract fun read(audioBuffer: ByteBuffer): Int
This method needs to be called by AudioIORunnable to pull renderable audio data from the media engine.