summaryrefslogtreecommitdiffstats
path: root/src/audio_core/algorithm/interpolate.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-02-23 04:26:16 +0100
committerbunnei <bunneidev@gmail.com>2020-02-23 04:26:16 +0100
commit1989e1b9acab221718e10e1d4aecc6e9cd2acae1 (patch)
tree07ea0ec81493eb495729633ef2542c20c776a64b /src/audio_core/algorithm/interpolate.h
parentMerge pull request #3444 from bunnei/linux-audio-fix (diff)
downloadyuzu-1989e1b9acab221718e10e1d4aecc6e9cd2acae1.tar
yuzu-1989e1b9acab221718e10e1d4aecc6e9cd2acae1.tar.gz
yuzu-1989e1b9acab221718e10e1d4aecc6e9cd2acae1.tar.bz2
yuzu-1989e1b9acab221718e10e1d4aecc6e9cd2acae1.tar.lz
yuzu-1989e1b9acab221718e10e1d4aecc6e9cd2acae1.tar.xz
yuzu-1989e1b9acab221718e10e1d4aecc6e9cd2acae1.tar.zst
yuzu-1989e1b9acab221718e10e1d4aecc6e9cd2acae1.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/algorithm/interpolate.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/audio_core/algorithm/interpolate.h b/src/audio_core/algorithm/interpolate.h
index 1b9831a75..ab1a31754 100644
--- a/src/audio_core/algorithm/interpolate.h
+++ b/src/audio_core/algorithm/interpolate.h
@@ -6,12 +6,17 @@
#include <array>
#include <vector>
+
#include "common/common_types.h"
namespace AudioCore {
struct InterpolationState {
- int fraction = 0;
+ static constexpr std::size_t taps{4};
+ static constexpr std::size_t history_size{taps * 2 - 1};
+ std::array<std::array<s16, 2>, history_size> history{};
+ double position{};
+ s32 fraction{};
};
/// Interpolates input signal to produce output signal.