Class AudioGraphSink
An AudioGraph-based audio sink.
Inheritance
System.Object
MediaSink<IAudioOutput, IAudioOutputCollection, IAudioInput, AudioSink, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>
AudioGraphSink
Implements
Inherited Members
Namespace: FM.LiveSwitch.Uwp
Assembly: FM.LiveSwitch.Uwp.dll
Syntax
public class AudioGraphSink : AudioSink, IAudioInput, IMediaInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IInput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioElement, IMediaElement, IElement
Constructors
AudioGraphSink()
Initializes a new instance of the AudioGraphSink class.
Declaration
public AudioGraphSink()
AudioGraphSink(AudioConfig)
Initializes a new instance of the AudioGraphSink class.
Declaration
public AudioGraphSink(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The configuration. |
AudioGraphSink(IAudioOutput)
Initializes a new instance of the AudioGraphSink class.
Declaration
public AudioGraphSink(IAudioOutput input)
Parameters
Type | Name | Description |
---|---|---|
IAudioOutput | input | The input. |
AudioGraphSink(IAudioOutput[])
Initializes a new instance of the AudioGraphSink class.
Declaration
public AudioGraphSink(IAudioOutput[] inputs)
Parameters
Type | Name | Description |
---|---|---|
IAudioOutput[] | inputs | The inputs. |
Properties
DeviceOutputNode
Gets the device output node.
Declaration
public AudioDeviceOutputNode DeviceOutputNode { get; }
Property Value
Type | Description |
---|---|
Windows.Media.Audio.AudioDeviceOutputNode |
FrameInputNode
Gets the frame input node.
Declaration
public AudioFrameInputNode FrameInputNode { get; }
Property Value
Type | Description |
---|---|
Windows.Media.Audio.AudioFrameInputNode |
Graph
Gets the graph.
Declaration
public AudioGraph Graph { get; }
Property Value
Type | Description |
---|---|
Windows.Media.Audio.AudioGraph |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
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>.Label
Methods
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
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>.DoDestroy()
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
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>.DoProcessFrame(FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer)
GetBufferDelay(AudioConfig)
Gets the buffer delay.
Declaration
public static int GetBufferDelay(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The config. |
Returns
Type | Description |
---|---|
System.Int32 |
GetOutputs()
Gets the outputs.
Declaration
public override Future<SinkOutput[]> GetOutputs()
Returns
Type | Description |
---|---|
Future<SinkOutput[]> |
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>.GetOutputs()