From 2f6765fc8a892c0661c9341047eaf97337ab3d4f Mon Sep 17 00:00:00 2001 From: KyloRen97 <163339705+KyloRen97@users.noreply.github.com> Date: Wed, 13 Mar 2024 20:05:17 +0200 Subject: [PATCH] HLE DSP: Fix sample clamping in SimpleFilter --- src/audio_core/hle/filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio_core/hle/filter.cpp b/src/audio_core/hle/filter.cpp index 6dcfc79a7..25f39a493 100644 --- a/src/audio_core/hle/filter.cpp +++ b/src/audio_core/hle/filter.cpp @@ -67,7 +67,7 @@ std::array SourceFilters::SimpleFilter::ProcessSample(const std::array y0; for (std::size_t i = 0; i < 2; i++) { const s32 tmp = (b0 * x0[i] + a1 * y1[i]) >> 15; - y0[i] = std::clamp(tmp, -32768, 32767); + y0[i] = std::clamp(tmp, -32768, 32768); } y1 = y0;