![]() |
Deluge Firmware 1.3.0
Build date: 2026.11.28
|
Public Member Functions | |
| void | process (std::span< StereoSample > buffer) |
Private Types | |
| using | CoefficientVectors = std::array<Argon<int32_t>, NUM_COEFFICIENT_VECTORS> |
Static Private Member Functions | |
| static void | copy (const StereoSample *from, size_t n, StereoSample *to) |
| static void | convolve (const StereoSample *x, std::span< StereoSample > output) |
| x points at the first new input, with HISTORY_SIZE older inputs before it | |
| template<size_t j> | |
| static void | tap (const int32_t *newest, CoefficientVectors &coefficients, Argon< int32_t > &later, Argon< int32_t > &earlier) |
| static size_t | convolveNeon (const StereoSample *x, std::span< StereoSample > output) |
| Four outputs (two vectors, each two stereo frames) at a time; returns how many outputs it did. | |
| static void | convolveScalar (const StereoSample *x, std::span< StereoSample > output, size_t n=0) |
| One output at a time, from output n on: the leftovers after convolveNeon, or everything off ARM. | |
Private Attributes | |
| std::array< StereoSample, HISTORY_SIZE > | history_ {} |
Static Private Attributes | |
| static constexpr size_t | IR_SIZE = 26 |
| static constexpr size_t | HISTORY_SIZE = (IR_SIZE - 1) |
| static constexpr std::array< int32_t, IR_SIZE > | ir |
| static constexpr size_t | CHUNK_SIZE = 64 |
| static constexpr size_t | NUM_COEFFICIENT_VECTORS = (IR_SIZE + 3) / 4 |
| static constexpr std::array< int32_t, NUM_COEFFICIENT_VECTORS *4 > | irHalf |
|
inlinestaticprivate |
Copy forwards, so moving samples down within the same array is fine too. These copies are short, so doing them two samples at a time inline is much cheaper than calling memcpy() / memmove() as std::copy does
|
inline |
Convolve the buffer with the IR, in place. Direct form, so each output is a single chain of rounded multiply-accumulates over the last IR_SIZE inputs; this gives exactly the same result as accumulating rounded products one at a time.
|
staticconstexprprivate |
|
staticconstexprprivate |