diff options
author | Chris Robinson <[email protected]> | 2012-04-30 09:33:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-30 09:33:00 -0700 |
commit | 010a66487d9b92f21d5b41c2d5956d8b79b58324 (patch) | |
tree | 3f4111c11cac98ce76e93d706328dddae0d8712d /Alc/ALu.c | |
parent | aed35fd811f7aa5f1a9d2edb499e43d490ede96e (diff) |
Use 2 chained one-pole filters for the wet path
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -308,8 +308,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALSource->Params.Direct.iirFilter.coeff = lpCoeffCalc(DryGainHF, cw); for(i = 0;i < NumSends;i++) { - /* We use a one-pole filter, so we need to take the squared gain */ - ALfloat a = lpCoeffCalc(WetGainHF[i]*WetGainHF[i], cw); + ALfloat a = lpCoeffCalc(WetGainHF[i], cw); ALSource->Params.Send[i].iirFilter.coeff = a; } } @@ -762,7 +761,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALSource->Params.Direct.iirFilter.coeff = lpCoeffCalc(DryGainHF, cw); for(i = 0;i < NumSends;i++) { - ALfloat a = lpCoeffCalc(WetGainHF[i]*WetGainHF[i], cw); + ALfloat a = lpCoeffCalc(WetGainHF[i], cw); ALSource->Params.Send[i].iirFilter.coeff = a; } } |