![]() |
Deluge Firmware 1.3.0
Build date: 2026.11.28
|
Public Member Functions | |
| StereoSample | interpolate (size_t channels, int32_t whichKernel, uint32_t oscPos) |
| StereoSample | interpolateLinear (size_t channels, uint32_t oscPos) |
| constexpr int16_t | l (size_t i) const |
| The i-th most recent sample, where 0 is the newest. | |
| constexpr int16_t | r (size_t i) const |
| constexpr void | setL (size_t i, int16_t value) |
| constexpr void | setR (size_t i, int16_t value) |
| constexpr void | push (int16_t left, int16_t right) |
Adds a newer sample, dropping the oldest. For mono, right is ignored. | |
| constexpr void | jumpForward (size_t num_samples) |
Private Types | |
| using | History = std::array<int16_t, 2 * kInterpolationMaxNumSamples> |
Private Member Functions | |
| constexpr void | set (History &history, size_t i, int16_t value) const |
Private Attributes | |
| History | history_l_ {} |
| History | history_r_ {} |
| size_t | head_ = 0 |
|
inlineconstexpr |
Makes room for num_samples newer samples, dropping the oldest. The caller must then set all of them, from setL(num_samples - 1) for the oldest of the new ones down to setL(0) for the newest.