Interface ISampleProvider
Like IWaveProvider, but makes it much simpler to put together a 32 bit floating point mixing engine
public interface ISampleProvider
- Extension Methods
Properties
WaveFormat
Gets the WaveFormat of this Sample Provider.
WaveFormat WaveFormat { get; }
Property Value
- WaveFormat
The wave format.
Methods
Read(Span<float>)
Fill the specified buffer with 32 bit floating point samples
int Read(Span<float> buffer)
Parameters
Returns
- int
The number of samples written. Return 0 to signal end of stream.