diff options
author | Chris Robinson <[email protected]> | 2016-02-05 09:55:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-02-05 09:55:08 -0800 |
commit | 3cac4dff95b7bf5c95c0fa7b70dc3423d4694b24 (patch) | |
tree | 11a471cc2279bf604a0132098c194d1ff834311c /Alc/effects | |
parent | 301d4c158b1f4a61ebbbd3b24c3b6c43708ce03e (diff) |
Boost the direct-pan reverb to better match the expected volume
Hopefully. Would be nice to have a reference implementation for this style of
reverb to compare with.
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/reverb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 4c91c53c..74388c13 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -670,6 +670,8 @@ static ALvoid UpdateDirectPanning(const ALCdevice *Device, const ALfloat *Reflec ALfloat length; 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); memset(State->Early.PanGain, 0, sizeof(State->Early.PanGain)); |