Rename LOWPASSFREQCUTOFF to LOWPASSFREQREF
This commit is contained in:
@@ -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++)
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
|
||||
@@ -446,7 +446,7 @@ extern "C" {
|
||||
#define SPEEDOFSOUNDMETRESPERSEC (343.3f)
|
||||
#define AIRABSORBGAINHF (0.99426f) /* -0.05dB */
|
||||
|
||||
#define LOWPASSFREQCUTOFF (5000)
|
||||
#define LOWPASSFREQREF (5000)
|
||||
|
||||
|
||||
struct Hrtf;
|
||||
|
||||
Reference in New Issue
Block a user