Deluge Firmware 1.4.0
Build date: 2026.11.30
Loading...
Searching...
No Matches
deluge::mic_velocity::EchoCanceller Class Reference

Public Member Functions

void reset ()
float process (float mic, float sent, bool adapt)
float weightEnergy () const
 How much the filter has learnt: the sum of its squared weights (0 when reset).

Static Public Attributes

static constexpr int32_t kTaps = 64
static constexpr int32_t kDelay = 4

Private Attributes

std::array< float, kHistory *2 > sent_ {}
int32_t pos_ = 0
std::array< float, kTaps > weights_ {}
float power_ = 0
int32_t sinceRecompute_ = 0

Static Private Attributes

static constexpr int32_t kHistory = kTaps + kDelay

Member Function Documentation

◆ process()

float deluge::dsp::mic_velocity::EchoCanceller::process ( float mic,
float sent,
bool adapt )

One decimated sample: what the mic heard, and what was sent to the codec for the same moment. Returns the mic with the speaker's estimated part taken out. adapt: whether to learn from this sample.

Member Data Documentation

◆ kTaps

Filter length and how far back it starts, in decimated samples (5.5 kHz): it covers 0.7-12 ms after a frame was sent, around the measured 2.5 ms


The documentation for this class was generated from the following files:
  • src/deluge/dsp/mic_velocity/echo_canceller.h
  • src/deluge/dsp/mic_velocity/echo_canceller.cpp