summaryrefslogtreecommitdiffstats
path: root/src/audio_core/algorithm/interpolate.h
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2020-01-16 18:47:36 +0100
committerFearlessTobi <thm.frey@gmail.com>2020-01-24 00:38:22 +0100
commite3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9 (patch)
treeb2d9e577a9e6710f5e5f1b6c5ddf3ec0e438fff5 /src/audio_core/algorithm/interpolate.h
parentMerge pull request #3341 from bunnei/time-posix-myrule (diff)
downloadyuzu-e3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9.tar
yuzu-e3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9.tar.gz
yuzu-e3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9.tar.bz2
yuzu-e3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9.tar.lz
yuzu-e3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9.tar.xz
yuzu-e3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9.tar.zst
yuzu-e3cad7d49e9d7dde0f5159e443ad9b2f229dcbe9.zip
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.