diff options
author | bunnei <bunneidev@gmail.com> | 2020-02-28 22:07:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 22:07:10 +0100 |
commit | ca7618684ce4be87673653e31631cafd487d7176 (patch) | |
tree | 9bdfe64cea8daf6debcbaee53425e3f07e26502b /src/audio_core/algorithm/interpolate.h | |
parent | Merge pull request #3470 from bunnei/fix-smash-srgb (diff) | |
parent | audio_core: interpolate: Improvements to fix audio crackling. (diff) | |
download | yuzu-ca7618684ce4be87673653e31631cafd487d7176.tar yuzu-ca7618684ce4be87673653e31631cafd487d7176.tar.gz yuzu-ca7618684ce4be87673653e31631cafd487d7176.tar.bz2 yuzu-ca7618684ce4be87673653e31631cafd487d7176.tar.lz yuzu-ca7618684ce4be87673653e31631cafd487d7176.tar.xz yuzu-ca7618684ce4be87673653e31631cafd487d7176.tar.zst yuzu-ca7618684ce4be87673653e31631cafd487d7176.zip |
Diffstat (limited to 'src/audio_core/algorithm/interpolate.h')
-rw-r--r-- | src/audio_core/algorithm/interpolate.h | 7 |
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. |