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)
This commit is contained in:
Mary 2021-04-18 13:34:20 +02:00 committed by GitHub
parent 40e276c9b5
commit bb43219f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
float input = inputBuffer[i] * 64; float input = inputBuffer[i] * 64;
float delayLineValue = state.DelayLines[0].Read(); 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; state.LowPassZ[0] = lowPassResult;