From fd54f4f03d4bad4f06e334089a3707f71f801d6a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 6 Feb 2016 18:05:27 -0800 Subject: Only apply the +3dB reverb gain boost to the ambient response. --- Alc/effects/reverb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Alc/effects') diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index f63d3591..6f7c7655 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -665,8 +665,7 @@ static ALvoid UpdateDirectPanning(const ALCdevice *Device, const ALfloat *Reflec ALuint i; /* Apply a boost of about 3dB to better match the expected stereo output volume. */ - Gain *= 1.414213562f; - ComputeAmbientGains(Device->AmbiCoeffs, Device->NumChannels, Gain, AmbientGains); + ComputeAmbientGains(Device->AmbiCoeffs, Device->NumChannels, Gain*1.414213562f, AmbientGains); memset(State->Early.PanGain, 0, sizeof(State->Early.PanGain)); length = sqrtf(ReflectionsPan[0]*ReflectionsPan[0] + ReflectionsPan[1]*ReflectionsPan[1] + ReflectionsPan[2]*ReflectionsPan[2]); -- cgit v1.2.3