Table of Contents

Class PanEffect

Namespace
NAudio.Effects
Assembly
NAudio.Core.dll

Constant-power stereo panner. Pan ranges from -1 (hard left) through 0 (centre) to +1 (hard right). Pan changes are smoothed. Only stereo signals are affected; other channel counts pass through unchanged.

public sealed class PanEffect : AudioEffect, IAudioEffect, IParameterized
Inheritance
PanEffect
Implements
Inherited Members

Properties

Pan

Pan position from -1 (hard left) to +1 (hard right); 0 is centre.

public float Pan { get; set; }

Property Value

float

Parameters

Generic parameter list (excludes Bypass/Mix, which are on the base).

public IReadOnlyList<EffectParameter> Parameters { get; }

Property Value

IReadOnlyList<EffectParameter>

Methods

OnConfigure(WaveFormat)

Called by Configure(WaveFormat) after the format is stored. Derived effects allocate and size their sample-rate-dependent state here.

protected override void OnConfigure(WaveFormat format)

Parameters

format WaveFormat

ProcessBlock(Span<float>)

Transforms buffer in place into the fully-wet signal. The base class handles dry/wet mixing and bypass around this call.

protected override void ProcessBlock(Span<float> buffer)

Parameters

buffer Span<float>

Reset()

Clears internal state (delay lines, envelopes, smoothers) so the next block starts as if from silence.

public override void Reset()