Table of Contents

Class DcBlockerEffect

Namespace
NAudio.Effects
Assembly
NAudio.Core.dll

Removes DC offset and sub-sonic rumble with a first-order high-pass (y[n] = x[n] - x[n-1] + R·y[n-1]), applied independently per channel. Cheap, phase-light, and a sensible first link in a voice or feedback chain.

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

Properties

CutoffFrequency

Approximate -3 dB cut-off in Hz (default 20 Hz). Negative values are clamped to 0.

public float CutoffFrequency { 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()