aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-30 23:07:15 -0700
committerChris Robinson <[email protected]>2011-09-30 23:07:15 -0700
commita7bbf7a741a76f01059ca399ad27f1f4bcf665a1 (patch)
treef54d0d221dd1d2df08d44e63da978ccc244833ee /Alc
parentbfa782f3296d94c46fea188f78cbf0e3799ee96b (diff)
Rename LOWPASSFREQCUTOFF to LOWPASSFREQREF
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c4
-rw-r--r--Alc/alcEcho.c2
-rw-r--r--Alc/alcReverb.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 8f49ddd3..433e1d2e 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -328,7 +328,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
/* Update filter coefficients. Calculations based on the I3DL2
* spec. */
- cw = aluCos(F_PI*2.0f * LOWPASSFREQCUTOFF / Frequency);
+ cw = aluCos(F_PI*2.0f * LOWPASSFREQREF / Frequency);
/* We use two chained one-pole filters, so we need to take the
* square root of the squared gain, which is the same as the base
@@ -797,7 +797,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
ALSource->Params.Send[i].WetGain = WetGain[i];
/* Update filter coefficients. */
- cw = aluCos(F_PI*2.0f * LOWPASSFREQCUTOFF / Frequency);
+ cw = aluCos(F_PI*2.0f * LOWPASSFREQREF / Frequency);
ALSource->Params.iirFilter.coeff = lpCoeffCalc(DryGainHF, cw);
for(i = 0;i < NumSends;i++)
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c
index 1d2afcf0..9bfb19b3 100644
--- a/Alc/alcEcho.c
+++ b/Alc/alcEcho.c
@@ -111,7 +111,7 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCcontext *Context, const ALeff
state->FeedGain = Slot->effect.Echo.Feedback;
- cw = aluCos(F_PI*2.0f * LOWPASSFREQCUTOFF / frequency);
+ cw = aluCos(F_PI*2.0f * LOWPASSFREQREF / frequency);
g = 1.0f - Slot->effect.Echo.Damping;
state->iirFilter.coeff = lpCoeffCalc(g, cw);
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c
index 52fb86da..c6d0f33c 100644
--- a/Alc/alcReverb.c
+++ b/Alc/alcReverb.c
@@ -1112,7 +1112,7 @@ static ALvoid ReverbUpdate(ALeffectState *effect, ALCcontext *Context, const ALe
// Calculate the master low-pass filter (from the master effect HF gain).
if(isEAX) cw = CalcI3DL2HFreq(Slot->effect.Reverb.HFReference, frequency);
- else cw = CalcI3DL2HFreq(LOWPASSFREQCUTOFF, frequency);
+ else cw = CalcI3DL2HFreq(LOWPASSFREQREF, frequency);
// This is done with 2 chained 1-pole filters, so no need to square g.
State->LpFilter.coeff = lpCoeffCalc(Slot->effect.Reverb.GainHF, cw);