From 4e5c4b8e01060bb34c58480895e70a0529d8a55e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 2 May 2017 15:55:58 -0700 Subject: [PATCH] Add a slight bit of attenuation to the reverb output --- Alc/effects/reverb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 972bb717..820ab70a 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -1412,8 +1412,10 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCdevice *Device props->Reverb.EchoTime, props->Reverb.EchoDepth, frequency, State); - /* Update early and late 3D panning. */ - gain = props->Reverb.Gain * Slot->Params.Gain * ReverbBoost; + /* Update early and late 3D panning. Attenuate the early and late stages + * both by 0.7071 (-3dB) to better balance the mixture. + */ + gain = sqrtf(0.5f) * props->Reverb.Gain * Slot->Params.Gain * ReverbBoost; Update3DPanning(Device, props->Reverb.ReflectionsPan, props->Reverb.LateReverbPan, gain, props->Reverb.ReflectionsGain, -- 2.11.4.GIT