Add a slight bit of attenuation to the reverb output

This commit is contained in:
Chris Robinson
2017-05-02 15:55:58 -07:00
parent 66f9640787
commit 4e5c4b8e01
+4 -2
View File
@@ -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,