From bb43219f1dfc2fc35e21bcccab4d96fba5e01f34 Mon Sep 17 00:00:00 2001 From: Mary Date: Sun, 18 Apr 2021 13:34:20 +0200 Subject: [PATCH] Amadeus: Fix low pass base gain related issues on delay effect in mono (#2224) This adds missing parenthesis around low pass z computation. This fixes FEZ audio gain issues inside rooms. (Ryujinx/Ryujinx-Games-List#3526) --- Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs b/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs index 4ceebcf6..ccd3a0dc 100644 --- a/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs +++ b/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs @@ -78,7 +78,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command float input = inputBuffer[i] * 64; float delayLineValue = state.DelayLines[0].Read(); - float lowPassResult = input * inGain + delayLineValue * feedbackGain * state.LowPassBaseGain + state.LowPassZ[0] * state.LowPassFeedbackGain; + float lowPassResult = (input * inGain + delayLineValue * feedbackGain) * state.LowPassBaseGain + state.LowPassZ[0] * state.LowPassFeedbackGain; state.LowPassZ[0] = lowPassResult;