aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-05-15 17:20:09 -0700
committerChris Robinson <[email protected]>2017-05-15 17:20:09 -0700
commit98392fbe904874254c8a9cbdcdbe4168f567705a (patch)
tree554aa6afc9c488468f04d2cdee630fc4ce019876 /Alc
parentfecf26318afe3c9a5c04919d5e9c444c606acb68 (diff)
Limit the dry and wet path filter gains to -60dB
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c8
1 files changed, 4 insertions, 4 deletions
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;