mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-27 15:35:29 +03:00
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:
parent
a3a2cb682e
commit
80e7b82bad
@ -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 +
|
||||
|
Loading…
Reference in New Issue
Block a user