diff options
author | Chris Robinson <[email protected]> | 2016-02-06 18:05:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-02-06 18:05:27 -0800 |
commit | fd54f4f03d4bad4f06e334089a3707f71f801d6a (patch) | |
tree | fe16ab35a68bece74414facdb97aa1e9a5d5224a /Alc | |
parent | 3ee42d9826ba6e1d4ee49e76fa56a4e6f4f1df68 (diff) |
Only apply the +3dB reverb gain boost to the ambient response.
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/effects/reverb.c | 3 |
1 files changed, 1 insertions, 2 deletions
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]); |