From 98392fbe904874254c8a9cbdcdbe4168f567705a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 15 May 2017 17:20:09 -0700 Subject: Limit the dry and wet path filter gains to -60dB --- Alc/ALu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc') diff --git a/Alc/ALu.c b/Alc/ALu.c index a1c8bc70..b3e0ee94 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -947,8 +947,8 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Distance, const { ALfloat hfScale = props->Direct.HFReference / Frequency; ALfloat lfScale = props->Direct.LFReference / Frequency; - ALfloat gainHF = maxf(DryGainHF, 0.0625f); /* Limit -24dB */ - ALfloat gainLF = maxf(DryGainLF, 0.0625f); + ALfloat gainHF = maxf(DryGainHF, 0.001f); /* Limit -60dB */ + ALfloat gainLF = maxf(DryGainLF, 0.001f); for(c = 0;c < num_channels;c++) { voice->Direct.Params[c].FilterType = AF_None; @@ -968,8 +968,8 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Distance, const { ALfloat hfScale = props->Send[i].HFReference / Frequency; ALfloat lfScale = props->Send[i].LFReference / Frequency; - ALfloat gainHF = maxf(WetGainHF[i], 0.0625f); - ALfloat gainLF = maxf(WetGainLF[i], 0.0625f); + ALfloat gainHF = maxf(WetGainHF[i], 0.001f); + ALfloat gainLF = maxf(WetGainLF[i], 0.001f); for(c = 0;c < num_channels;c++) { voice->Send[i].Params[c].FilterType = AF_None; -- cgit v1.2.3