aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/algorithm/interpolate.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-02-22 01:54:40 -0500
committerGitHub <noreply@github.com>2020-02-22 01:54:40 -0500
commit19bce3685ab66d8b31a06e560a4c98d412fc9979 (patch)
tree62ca9f750c812094319ce48ebf9cee8563dcc7b3 /src/audio_core/algorithm/interpolate.h
parent27d57e0c4a296f4011c4d8758137a3d259dd1141 (diff)
parente3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9 (diff)
Merge pull request #3310 from FearlessTobi/fast-resample
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.h9
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.