diff options
| author | 2020-12-30 19:03:26 -0500 | |
|---|---|---|
| committer | 2020-12-30 19:03:26 -0500 | |
| commit | fa5a1a4bfd4b2ba85a9f9644035edfe9a8fd8b68 (patch) | |
| tree | cc7c32328d5ac08a864ecb711ddb862c55ebba03 /src/audio_core/algorithm | |
| parent | Merge pull request #5263 from lioncash/uninit (diff) | |
| download | yuzu-fa5a1a4bfd4b2ba85a9f9644035edfe9a8fd8b68.tar.gz yuzu-fa5a1a4bfd4b2ba85a9f9644035edfe9a8fd8b68.tar.xz yuzu-fa5a1a4bfd4b2ba85a9f9644035edfe9a8fd8b68.zip | |
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...
Diffstat (limited to 'src/audio_core/algorithm')
| -rw-r--r-- | src/audio_core/algorithm/interpolate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/algorithm/interpolate.cpp b/src/audio_core/algorithm/interpolate.cpp index 699fcb84c..3b4144e21 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 | |||
| 218 | const auto l2 = lut[lut_index + 2]; | 218 | const auto l2 = lut[lut_index + 2]; |
| 219 | const auto l3 = lut[lut_index + 3]; | 219 | const auto l3 = lut[lut_index + 3]; |
| 220 | 220 | ||
| 221 | const auto s0 = static_cast<s32>(input[index]); | 221 | const auto s0 = static_cast<s32>(input[index + 0]); |
| 222 | const auto s1 = static_cast<s32>(input[index + 1]); | 222 | const auto s1 = static_cast<s32>(input[index + 1]); |
| 223 | const auto s2 = static_cast<s32>(input[index + 2]); | 223 | const auto s2 = static_cast<s32>(input[index + 2]); |
| 224 | const auto s3 = static_cast<s32>(input[index + 3]); | 224 | const auto s3 = static_cast<s32>(input[index + 3]); |