Class AecProcessor
A libaudioprocessing-based AEC processor.
Inheritance
Implements
Inherited Members
Namespace: FM.LiveSwitch.AudioProcessing
Assembly: FM.LiveSwitch.AudioProcessing.dll
Syntax
public class AecProcessor : AecPipe, IAudioInput, IMediaInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioOutput, IMediaOutput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IOutput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioElement, IMediaElement, IElement
Constructors
AecProcessor()
Initializes a new instance of the AecProcessor class.
Declaration
public AecProcessor()
AecProcessor(AudioConfig)
Initializes a new instance of the AecProcessor class.
Declaration
public AecProcessor(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The input/output configuration. |
AecProcessor(AudioConfig, Int32)
Initializes a new instance of the AecProcessor class.
Declaration
public AecProcessor(AudioConfig config, int tailLength)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The input/output configuration. |
System.Int32 | tailLength | The tail length in milliseconds. |
AecProcessor(AudioFormat)
Initializes a new instance of the AecProcessor class.
Declaration
public AecProcessor(AudioFormat format)
Parameters
Type | Name | Description |
---|---|---|
AudioFormat | format | The input/output format. |
AecProcessor(AudioFormat, Int32)
Initializes a new instance of the AecProcessor class.
Declaration
public AecProcessor(AudioFormat format, int tailLength)
Parameters
Type | Name | Description |
---|---|---|
AudioFormat | format | The input/output format. |
System.Int32 | tailLength | The tail length in milliseconds. |
AecProcessor(IAudioOutput)
Initializes a new instance of the AecProcessor class.
Declaration
public AecProcessor(IAudioOutput microphone)
Parameters
Type | Name | Description |
---|---|---|
IAudioOutput | microphone | The microphone. |
AecProcessor(IAudioOutput, Int32)
Initializes a new instance of the AecProcessor class.
Declaration
public AecProcessor(IAudioOutput microphone, int tailLength)
Parameters
Type | Name | Description |
---|---|---|
IAudioOutput | microphone | The microphone. |
System.Int32 | tailLength | The tail length in milliseconds. |
AecProcessor(Int32)
Initializes a new instance of the AecProcessor class.
Declaration
public AecProcessor(int tailLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tailLength | The tail length in milliseconds. |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
TailLength
Gets or sets the tail length in milliseconds. Minimum allowed value is 32. Maximum allowed value is 512.
Declaration
public int TailLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
DoProcessFrame(AudioFrame, AudioBuffer)
Processes a frame.
Declaration
protected override void DoProcessFrame(AudioFrame frame, AudioBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
AudioFrame | frame | The frame. |
AudioBuffer | inputBuffer | The input buffer. |
Overrides
ProcessSpeakerFrame(AudioFrame)
Processes a speaker frame.
Declaration
protected override void ProcessSpeakerFrame(AudioFrame frame)
Parameters
Type | Name | Description |
---|---|---|
AudioFrame | frame | The frame. |