aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-16 11:25:28 -0700
committerChris Robinson <[email protected]>2017-03-16 11:25:28 -0700
commit8f5cab56080fedd5002a7141aa796d371340ab0a (patch)
tree86e1c31a1d55c575c5cf1a44bc2faa099e3c05f7
parent32d521d79cf9baeb3cdbec69c8374ae5776d9052 (diff)
Increase the filter slope to -12dB/octave
-rw-r--r--Alc/ALu.c16
-rw-r--r--Alc/effects/echo.c2
2 files changed, 9 insertions, 9 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 5148d141..7936c706 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -718,11 +718,11 @@ static void CalcNonAttnSourceParams(ALvoice *voice, const struct ALsourceProps *
if(DryGainLF != 1.0f) voice->Direct.Params[c].FilterType |= AF_HighPass;
ALfilterState_setParams(
&voice->Direct.Params[c].LowPass, ALfilterType_HighShelf,
- DryGainHF, HFScale, calc_rcpQ_from_slope(DryGainHF, 0.75f)
+ DryGainHF, HFScale, calc_rcpQ_from_slope(DryGainHF, 1.0f)
);
ALfilterState_setParams(
&voice->Direct.Params[c].HighPass, ALfilterType_LowShelf,
- DryGainLF, LFScale, calc_rcpQ_from_slope(DryGainLF, 0.75f)
+ DryGainLF, LFScale, calc_rcpQ_from_slope(DryGainLF, 1.0f)
);
}
}
@@ -739,11 +739,11 @@ static void CalcNonAttnSourceParams(ALvoice *voice, const struct ALsourceProps *
if(WetGainLF[i] != 1.0f) voice->Send[i].Params[c].FilterType |= AF_HighPass;
ALfilterState_setParams(
&voice->Send[i].Params[c].LowPass, ALfilterType_HighShelf,
- WetGainHF[i], HFScale, calc_rcpQ_from_slope(WetGainHF[i], 0.75f)
+ WetGainHF[i], HFScale, calc_rcpQ_from_slope(WetGainHF[i], 1.0f)
);
ALfilterState_setParams(
&voice->Send[i].Params[c].HighPass, ALfilterType_LowShelf,
- WetGainLF[i], LFScale, calc_rcpQ_from_slope(WetGainLF[i], 0.75f)
+ WetGainLF[i], LFScale, calc_rcpQ_from_slope(WetGainLF[i], 1.0f)
);
}
}
@@ -1220,11 +1220,11 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALsourceProps *pro
if(DryGainLF != 1.0f) voice->Direct.Params[0].FilterType |= AF_HighPass;
ALfilterState_setParams(
&voice->Direct.Params[0].LowPass, ALfilterType_HighShelf,
- DryGainHF, HFScale, calc_rcpQ_from_slope(DryGainHF, 0.75f)
+ DryGainHF, HFScale, calc_rcpQ_from_slope(DryGainHF, 1.0f)
);
ALfilterState_setParams(
&voice->Direct.Params[0].HighPass, ALfilterType_LowShelf,
- DryGainLF, LFScale, calc_rcpQ_from_slope(DryGainLF, 0.75f)
+ DryGainLF, LFScale, calc_rcpQ_from_slope(DryGainLF, 1.0f)
);
}
for(i = 0;i < NumSends;i++)
@@ -1238,11 +1238,11 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALsourceProps *pro
if(WetGainLF[i] != 1.0f) voice->Send[i].Params[0].FilterType |= AF_HighPass;
ALfilterState_setParams(
&voice->Send[i].Params[0].LowPass, ALfilterType_HighShelf,
- WetGainHF[i], HFScale, calc_rcpQ_from_slope(WetGainHF[i], 0.75f)
+ WetGainHF[i], HFScale, calc_rcpQ_from_slope(WetGainHF[i], 1.0f)
);
ALfilterState_setParams(
&voice->Send[i].Params[0].HighPass, ALfilterType_LowShelf,
- WetGainLF[i], LFScale, calc_rcpQ_from_slope(WetGainLF[i], 0.75f)
+ WetGainLF[i], LFScale, calc_rcpQ_from_slope(WetGainLF[i], 1.0f)
);
}
}
diff --git a/Alc/effects/echo.c b/Alc/effects/echo.c
index 07eba9eb..4293674f 100644
--- a/Alc/effects/echo.c
+++ b/Alc/effects/echo.c
@@ -129,7 +129,7 @@ static ALvoid ALechoState_update(ALechoState *state, const ALCdevice *Device, co
gain = minf(1.0f - props->Echo.Damping, 0.0625f); /* Limit -24dB */
ALfilterState_setParams(&state->Filter, ALfilterType_HighShelf,
gain, LOWPASSFREQREF/frequency,
- calc_rcpQ_from_slope(gain, 0.75f));
+ calc_rcpQ_from_slope(gain, 1.0f));
gain = Slot->Params.Gain;