diff options
| author | FearlessTobi <thm.frey@gmail.com> | 2020-01-16 18:47:36 +0100 |
|---|---|---|
| committer | FearlessTobi <thm.frey@gmail.com> | 2020-01-24 00:38:22 +0100 |
| commit | e3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9 (patch) | |
| tree | b2d9e577a9e6710f5e5f1b6c5ddf3ec0e438fff5 /src/audio_core/algorithm/interpolate.h | |
| parent | a167da4278df6d864a8990f846cf3ede1158f3db (diff) | |
audio_core: Switch to a faster interpolation technique
Diffstat (limited to 'src/audio_core/algorithm/interpolate.h')
| -rw-r--r-- | src/audio_core/algorithm/interpolate.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/audio_core/algorithm/interpolate.h b/src/audio_core/algorithm/interpolate.h index edbd6460f..1b9831a75 100644 --- a/src/audio_core/algorithm/interpolate.h +++ b/src/audio_core/algorithm/interpolate.h @@ -6,19 +6,12 @@ #include <array> #include <vector> -#include "audio_core/algorithm/filter.h" #include "common/common_types.h" namespace AudioCore { struct InterpolationState { - static constexpr std::size_t lanczos_taps = 4; - static constexpr std::size_t history_size = lanczos_taps * 2 - 1; - - double current_ratio = 0.0; - CascadingFilter nyquist; - std::array<std::array<s16, 2>, history_size> history = {}; - double position = 0; + int fraction = 0; }; /// Interpolates input signal to produce output signal. |
