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 FakeAudioSource class.
Declaration
public FakeAudioSource(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The output configuration. |
FakeAudioSource(AudioConfig, Single)
Initializes a new instance of the FakeAudioSource class.
Declaration
public FakeAudioSource(AudioConfig config, float frequency)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The output configuration. |
System.Single | frequency | The output frequency. |
FakeAudioSource(AudioConfig, Single, Int32)
Initializes a new instance of the FakeAudioSource class.
Declaration
public FakeAudioSource(AudioConfig config, float frequency, int amplitude)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The output configuration. |
System.Single | frequency | The output frequency. |
System.Int32 | amplitude | The output amplitude |
FakeAudioSource(AudioConfig, Single, Int32, Int32)
Initializes a new instance of the FakeAudioSource class.
Declaration
public FakeAudioSource(AudioConfig config, float frequency, int amplitude, int latency)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The output configuration. |
System.Single | frequency | The output frequency. |
System.Int32 | amplitude | The output amplitude. |
System.Int32 | latency | The initial latency. |
Properties
Amplitude
Gets the output amplitude.
Declaration
public int Amplitude { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Frequency
Gets the output frequency.
Declaration
public float Frequency { get; }
Property Value
Type | Description |
---|---|
System.Single |
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
Latency
Gets the initial latency.
Declaration
public int Latency { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
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()