diff options
author | Chris Robinson <[email protected]> | 2017-05-15 17:20:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-05-15 17:20:09 -0700 |
commit | 98392fbe904874254c8a9cbdcdbe4168f567705a (patch) | |
tree | 554aa6afc9c488468f04d2cdee630fc4ce019876 /Alc | |
parent | fecf26318afe3c9a5c04919d5e9c444c606acb68 (diff) |
Limit the dry and wet path filter gains to -60dB
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |