Table of Contents

Class StereoWidthEffect

Namespace
NAudio.Effects
Assembly
NAudio.Core.dll

Adjusts stereo width via mid/side processing. Width of 0 collapses to mono, 1 leaves the image unchanged, and values above 1 widen it. Width changes are smoothed. Only stereo signals are affected; other channel counts pass through unchanged.

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

Properties

Parameters

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

public IReadOnlyList<EffectParameter> Parameters { get; }

Property Value

IReadOnlyList<EffectParameter>

Width

Stereo width: 0 = mono, 1 = unchanged, >1 = wider (2 is a typical maximum).

public float Width { get; set; }

Property Value

float

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