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

Classes

struct  Result

Public Member Functions

void reset ()
void process (float mic, float sent)
 One decimated sample: what the mic heard, and what was sent to the codec for the same moment.
Result result () const

Static Public Attributes

static constexpr int32_t kMaxLag = 352
 The longest delay looked for, in decimated samples (5.5 kHz): 64 ms.
static constexpr float kMinCorrelation = 0.1f
static constexpr float kMinStandOut = 4.f
static constexpr int32_t kNeighbourhood = 16

Private Attributes

std::array< float, kHistory *2 > sent_ {}
int32_t pos_ = 0
std::array< float, kMaxLag > correlation_ {}
float micPower_ = 0
float sentPower_ = 0
float previousMic_ = 0

Static Private Attributes

static constexpr int32_t kHistory = kMaxLag + 1

Member Data Documentation

◆ kMinCorrelation

float deluge::dsp::mic_velocity::DelayFinder::kMinCorrelation = 0.1f
staticconstexpr

A delay is found when its correlation (normalised) is at least this (unrelated sound reaches ~0.05), and this many times the average away from it (beyond kNeighbourhood either side: the path spreads the peak itself)


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