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(float[], int, int)
Fill the specified buffer with 32 bit floating point samples
int Read(float[] buffer, int offset, int count)
Parameters
buffer
float[]The buffer to fill with samples.
offset
intOffset into buffer
count
intThe number of samples to read
Returns
- int
the number of samples written to the buffer.