Table of Contents

Class PanningSampleProvider

Namespace
NAudio.Wave.SampleProviders
Assembly
NAudio.Core.dll

Converts a mono sample provider to stereo, with a customisable pan strategy

public class PanningSampleProvider : ISampleProvider
Inheritance
PanningSampleProvider
Implements
Inherited Members
Extension Methods

Constructors

PanningSampleProvider(ISampleProvider)

Initialises a new instance of the PanningSampleProvider

public PanningSampleProvider(ISampleProvider source)

Parameters

source ISampleProvider

Source sample provider, must be mono

Properties

Pan

Pan value, must be between -1 (left) and 1 (right)

public float Pan { get; set; }

Property Value

float

PanStrategy

The pan strategy currently in use

public IPanStrategy PanStrategy { get; set; }

Property Value

IPanStrategy

WaveFormat

The WaveFormat of this sample provider

public WaveFormat WaveFormat { get; }

Property Value

WaveFormat

Methods

Read(Span<float>)

Reads samples from this sample provider

public int Read(Span<float> buffer)

Parameters

buffer Span<float>

Sample buffer

Returns

int

Number of samples read