Class ChannelSelector
Selects one of the channels from a stereo data source.
Implements
CSCore.ISampleAggregator
CSCore.ISampleSource
CSCore.IReadableAudioSource<Single>
CSCore.IAudioSource
Namespace: VE3NEA.HamCockpit.DspFun
Assembly: VE3NEA.HamCockpit.DspFun.dll
Syntax
public class ChannelSelector : SampleAggregatorBase, ISampleAggregator, ISampleSource, IAggregator<float, ISampleSource>, IReadableAudioSource<float>, IAudioSource, IDisposable
Constructors
| Name | Description |
|---|---|
| ChannelSelector(ISampleSource, ChannelMask) | Creates a new instance of the ChannelSelector class from an existing sample source. |
Properties
| Name | Description |
|---|---|
| Length | Gets the data length in samples. |
| Position | Gets or sets the position in samples. |
| WaveFormat | Gets the CSCore.IAudioSource.WaveFormat of the waveform-audio data. |
Methods
| Name | Description |
|---|---|
| Dispose(Boolean) | Disposes allocated resources. |
| Read(Single[], Int32, Int32) | Reads a sequence of samples from the CSCore.SampleAggregatorBase and advances the position within the stream by the number of samples read. |