![]() |
Deluge Firmware 1.4.0
Build date: 2026.11.30
|
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 |
|
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)