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
sourceISampleProviderSource sample provider, must be mono
Properties
Pan
Pan value, must be between -1 (left) and 1 (right)
public float Pan { get; set; }
Property Value
PanStrategy
The pan strategy currently in use
public IPanStrategy PanStrategy { get; set; }
Property Value
WaveFormat
The WaveFormat of this sample provider
public WaveFormat WaveFormat { get; }
Property Value
Methods
Read(Span<float>)
Reads samples from this sample provider
public int Read(Span<float> buffer)
Parameters
Returns
- int
Number of samples read