Table of Contents

Interface ISampleProvider

Namespace
NAudio.Wave
Assembly
NAudio.Core.dll

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 int

Offset into buffer

count int

The number of samples to read

Returns

int

the number of samples written to the buffer.