mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-02 22:52:03 +00:00
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:
parent
40e276c9b5
commit
bb43219f1d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue