Class MediaCaptureAudioSource
A MediaCapture-based audio source.
Inheritance
System.Object
MediaSource<IAudioOutput, IAudioInput, IAudioInputCollection, AudioSource, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>
MediaCaptureAudioSource
Implements
Inherited Members
Namespace: FM.LiveSwitch.Uwp
Assembly: FM.LiveSwitch.Uwp.dll
Syntax
public class MediaCaptureAudioSource : AudioSource, IAudioOutput, IMediaOutput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IOutput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioElement, IMediaElement, IElement
Constructors
MediaCaptureAudioSource(AudioConfig)
Initializes a new instance of the MediaCaptureAudioSource class.
Declaration
public MediaCaptureAudioSource(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.IAudioInputCollection, FM.LiveSwitch.AudioSource, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.Label
MediaCapture
Gets the media capture.
Declaration
public MediaCapture MediaCapture { get; }
Property Value
Type | Description |
---|---|
Windows.Media.Capture.MediaCapture |
MediaFrameReader
Gets the media frame reader.
Declaration
public MediaFrameReader MediaFrameReader { get; }
Property Value
Type | Description |
---|---|
Windows.Media.Capture.Frames.MediaFrameReader |
MediaFrameSource
Gets the media frame source.
Declaration
public MediaFrameSource MediaFrameSource { get; }
Property Value
Type | Description |
---|---|
Windows.Media.Capture.Frames.MediaFrameSource |
Methods
DoStart()
Starts this instance.
Declaration
protected override Future<object> DoStart()
Returns
Type | Description |
---|---|
Future<System.Object> |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.IAudioInputCollection, FM.LiveSwitch.AudioSource, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.DoStart()
DoStop()
Stops this instance.
Declaration
protected override Future<object> DoStop()
Returns
Type | Description |
---|---|
Future<System.Object> |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.IAudioInputCollection, FM.LiveSwitch.AudioSource, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.DoStop()
GetInputs()
Gets the inputs.
Declaration
public override Future<SourceInput[]> GetInputs()
Returns
Type | Description |
---|---|
Future<SourceInput[]> |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.IAudioInputCollection, FM.LiveSwitch.AudioSource, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.GetInputs()