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(Span<float>)

Fill the specified buffer with 32 bit floating point samples

int Read(Span<float> buffer)

Parameters

buffer Span<float>

The buffer to fill with samples.

Returns

int

The number of samples written. Return 0 to signal end of stream.