aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-07-20 22:18:44 -0700
committerChris Robinson <[email protected]>2013-07-20 22:18:44 -0700
commitd85f0c0bb2f4545ab404d7fa3ec313c632e09cff (patch)
tree18a3f14e4b893357aeb8c6e5f13d514f1c9af16d
parent0a95c470b009fe810974fb8848e876b6329e7dd7 (diff)
Improve the source's low-pass filter response
-rw-r--r--Alc/ALu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 608db651..18188d74 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -447,7 +447,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
}
{
- ALfloat gain = maxf(0.001f, sqrtf(DryGainHF));
+ ALfloat gain = maxf(0.01f, DryGainHF);
for(c = 0;c < num_channels;c++)
ALfilterState_setParams(&ALSource->Params.Direct.Filter[c],
ALfilterType_HighShelf, gain,
@@ -455,7 +455,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
}
for(i = 0;i < NumSends;i++)
{
- ALfloat gain = maxf(0.001f, sqrtf(WetGainHF[i]));
+ ALfloat gain = maxf(0.01f, WetGainHF[i]);
for(c = 0;c < num_channels;c++)
ALfilterState_setParams(&ALSource->Params.Send[i].Filter[c],
ALfilterType_HighShelf, gain,
@@ -892,14 +892,14 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
{
- ALfloat gain = maxf(0.001f, sqrtf(DryGainHF));
+ ALfloat gain = maxf(0.01f, DryGainHF);
ALfilterState_setParams(&ALSource->Params.Direct.Filter[0],
ALfilterType_HighShelf, gain,
(ALfloat)LOWPASSFREQREF/Frequency, 0.0f);
}
for(i = 0;i < NumSends;i++)
{
- ALfloat gain = maxf(0.001f, sqrtf(WetGainHF[i]));
+ ALfloat gain = maxf(0.01f, WetGainHF[i]);
ALfilterState_setParams(&ALSource->Params.Send[i].Filter[0],
ALfilterType_HighShelf, gain,
(ALfloat)LOWPASSFREQREF/Frequency, 0.0f);