Class DcBlockerEffect
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
Parameters
Generic parameter list (excludes Bypass/Mix, which are on the base).
public IReadOnlyList<EffectParameter> Parameters { get; }
Property Value
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
formatWaveFormat
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
Reset()
Clears internal state (delay lines, envelopes, smoothers) so the next block starts as if from silence.
public override void Reset()