Class SampleSourceWrapper
A wrapper for the ISampleStream that exposes the CSCore.ISampleSource interface.
Namespace: VE3NEA.HamCockpit.DspFun
Assembly: VE3NEA.HamCockpit.DspFun.dll
Syntax
public class SampleSourceWrapper : ISampleSource, IReadableAudioSource<float>, IAudioSource, IDisposable
Constructors
| Name | Description |
|---|---|
| SampleSourceWrapper(ISampleStream) | Initializes a new instance of the SampleSourceWrapper class. |
Properties
| Name | Description |
|---|---|
| CanSeek | Returns false. |
| Format | Gets the format of the output data. |
| Length | Not implemented. |
| Position | Not implemented. |
| WaveFormat | Gets the CSCore.IAudioSource.WaveFormat of the waveform-audio data. |
Methods
| Name | Description |
|---|---|
| Dispose() | Releases unmanaged and - optionally - managed resources. |
| Read(Single[], Int32, Int32) | Reads data from the device to the provided buffer. |