From fa5a1a4bfd4b2ba85a9f9644035edfe9a8fd8b68 Mon Sep 17 00:00:00 2001 From: 16-Bit-Dog <67922228+16-Bit-Dog@users.noreply.github.com> Date: Wed, 30 Dec 2020 19:03:26 -0500 Subject: [PATCH] Make the coding conventions more consistant lut_index had 0 added when nothing was supposed to be added despite this, index was not added to 0 when nothing was supposed to be added... --- src/audio_core/algorithm/interpolate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio_core/algorithm/interpolate.cpp b/src/audio_core/algorithm/interpolate.cpp index 699fcb84c6..3b4144e219 100644 --- a/src/audio_core/algorithm/interpolate.cpp +++ b/src/audio_core/algorithm/interpolate.cpp @@ -218,7 +218,7 @@ void Resample(s32* output, const s32* input, s32 pitch, s32& fraction, std::size const auto l2 = lut[lut_index + 2]; const auto l3 = lut[lut_index + 3]; - const auto s0 = static_cast(input[index]); + const auto s0 = static_cast(input[index + 0]); const auto s1 = static_cast(input[index + 1]); const auto s2 = static_cast(input[index + 2]); const auto s3 = static_cast(input[index + 3]);