Class AudioSink
An audio sink.
Inheritance
System.Object
MediaSink <IAudioOutput , IAudioOutputCollection , IAudioInput , AudioSink , AudioFrame , AudioBuffer , AudioBufferCollection , AudioFormat >
AudioSink
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class AudioSink : MediaSink<IAudioOutput, IAudioOutputCollection, IAudioInput, AudioSink, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioInput, IMediaInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioElement, IMediaElement, IElement
Constructors
AudioSink()
Initializes a new instance of the Audio
Declaration
public AudioSink()
AudioSink(AudioFormat)
Initializes a new instance of the Audio
Declaration
public AudioSink(AudioFormat inputFormat)
Parameters
Type | Name | Description |
---|---|---|
Audio |
inputFormat | The input format. |
Properties
Config
Gets the input configuration.
Declaration
public AudioConfig Config { get; }
Property Value
Type | Description |
---|---|
Audio |
Gain
Gets or sets a value indicating the gain (input amplification) of this sink. Any value greater than or equal to 0.0 is acceptable.
Declaration
public double Gain { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
CreateOutputCollection(IAudioInput)
Creates an output collection.
Declaration
protected override IAudioOutputCollection CreateOutputCollection(IAudioInput input)
Parameters
Type | Name | Description |
---|---|---|
IAudio |
input | The input. |
Returns
Type | Description |
---|---|
IAudio |
Overrides
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioOutputCollection, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.AudioSink, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.CreateOutputCollection(FM.LiveSwitch.IAudioInput)
ProcessFrame(AudioFrame)
Processes a frame.
Declaration
public override bool ProcessFrame(AudioFrame frame)
Parameters
Type | Name | Description |
---|---|---|
Audio |
frame | The frame. |
Returns
Type | Description |
---|---|
System. |
Overrides
FM.LiveSwitch.MediaSink<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioOutputCollection, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.AudioSink, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.ProcessFrame(FM.LiveSwitch.AudioFrame)