Noise Cancellation Audio Device
class NoiseCancellationAudioDevice(context: Context, capturerFactory: AudioCapturerFactory, rendererFactory: AudioRendererFactory) : AudioDevice, ExternalAudioProcessor
Content copied to clipboard
NoiseCancellationAudioDevice is the audio plugin. While the first argument is required, the latter two arguments capturerFactory and endererFactory are optional and allow for the developer to override the default factory methods for constructing custom audio capturers and renderers.
Parameters
context
The Application or activity context to be used by the plugin
capturerFactory
An optional argument that allows for the capturer to be overridden.
rendererFactory
An optional argument that allows for the renderer to be overridden.
Constructors
NoiseCancellationAudioDevice
Link copied to clipboard
fun NoiseCancellationAudioDevice(context: Context, capturerFactory: AudioCapturerFactory = ::DefaultCapturerFactory, rendererFactory: AudioRendererFactory = ::DefaultRendererFactory)
Content copied to clipboard
The Application or activity context to be used by the plugin
Functions
getCapturerFormat
Link copied to clipboard
getEnabled
Link copied to clipboard
getPausedProcessing
Link copied to clipboard
getRendererFormat
Link copied to clipboard
onInitCapturer
Link copied to clipboard
onInitRenderer
Link copied to clipboard
onStartCapturing
Link copied to clipboard
open override fun onStartCapturing(audioDeviceContext: AudioDeviceContext): Boolean
Content copied to clipboard
onStartRendering
Link copied to clipboard
open override fun onStartRendering(audioDeviceContext: AudioDeviceContext): Boolean
Content copied to clipboard
onStopCapturing
Link copied to clipboard
onStopRendering
Link copied to clipboard
setPausedProcessing
Link copied to clipboard