mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 01:25:25 +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
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue