Fix the LUT shift in the audio resampler

We do not need to shift back as we use a struct to hold the LUT entries.
This commit is contained in:
Billy Laws 2020-07-15 15:19:15 +01:00 committed by ◱ PixelyIon
parent a3a2cb682e
commit 80e7b82bad

View File

@ -135,7 +135,7 @@ namespace skyline::audio {
}();
for (size_t outIndex = 0, inIndex = 0; outIndex < outputSize; outIndex += channelCount) {
auto lutIndex = (fraction >> 8) << 2;
auto lutIndex = fraction >> 8;
for (u8 channel = 0; channel < channelCount; channel++) {
i32 data = inputBuffer[(inIndex + 0) * channelCount + channel] * lut[lutIndex].a +