Class FakeAudioSource
A fake audio source.
Inheritance
System.Object
MediaSource <IAudioOutput , IAudioInput , IAudioInputCollection , AudioSource , AudioFrame , AudioBuffer , AudioBufferCollection , AudioFormat >
FakeAudioSource
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class FakeAudioSource : AudioSource, IAudioOutput, IMediaOutput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IOutput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioElement, IMediaElement, IElement
Constructors
FakeAudioSource(AudioConfig)
Initializes a new instance of the Fake
Declaration
public FakeAudioSource(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
Audio |
config | The output configuration. |
FakeAudioSource(AudioConfig, Single)
Initializes a new instance of the Fake
Declaration
public FakeAudioSource(AudioConfig config, float frequency)
Parameters
Type | Name | Description |
---|---|---|
Audio |
config | The output configuration. |
System. |
frequency | The output frequency. |
FakeAudioSource(AudioConfig, Single, Int32)
Initializes a new instance of the Fake
Declaration
public FakeAudioSource(AudioConfig config, float frequency, int amplitude)
Parameters
Type | Name | Description |
---|---|---|
Audio |
config | The output configuration. |
System. |
frequency | The output frequency. |
System. |
amplitude | The output amplitude |
FakeAudioSource(AudioConfig, Single, Int32, Int32)
Initializes a new instance of the Fake
Declaration
public FakeAudioSource(AudioConfig config, float frequency, int amplitude, int latency)
Parameters
Type | Name | Description |
---|---|---|
Audio |
config | The output configuration. |
System. |
frequency | The output frequency. |
System. |
amplitude | The output amplitude. |
System. |
latency | The initial latency. |
Properties
Amplitude
Gets the output amplitude.
Declaration
public int Amplitude { get; }
Property Value
Type | Description |
---|---|
System. |
Frequency
Gets the output frequency.
Declaration
public float Frequency { get; }
Property Value
Type | Description |
---|---|
System. |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System. |
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
Latency
Gets the initial latency.
Declaration
public int Latency { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
DoStart()
Starts this instance.
Declaration
protected override Future<object> DoStart()
Returns
Type | Description |
---|---|
Future<System. |
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. |
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()