aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/autowah.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-12-20 00:16:23 -0800
committerChris Robinson <[email protected]>2013-12-20 00:16:23 -0800
commitd596cf9cf32302b122a59ae2d5313bd8d051b479 (patch)
treed7cc67627fdd6d1b4bb06f2c5986b284c0fc263e /Alc/effects/autowah.c
parent1bd828603e266db7b08a3ca5670e7cd2575357a4 (diff)
Use a different autowah filter range
Still just guesses, but this seems to avoid math problems with low peak gains.
Diffstat (limited to 'Alc/effects/autowah.c')
-rw-r--r--Alc/effects/autowah.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/autowah.c b/Alc/effects/autowah.c
index 785fdb28..9a45e233 100644
--- a/Alc/effects/autowah.c
+++ b/Alc/effects/autowah.c
@@ -108,7 +108,7 @@ static ALvoid ALautowahState_process(ALautowahState *state, ALuint SamplesToDo,
gain = maxf(gain, GAIN_SILENCE_THRESHOLD);
/* FIXME: What range does the filter cover? */
- cutoff = lerp(500.0f, 3000.0f, minf(gain / state->PeakGain, 1.0f));
+ cutoff = lerp(1000.0f, (ALfloat)LOWPASSFREQREF, minf(gain/state->PeakGain, 1.0f));
/* The code below is like calling ALfilterState_setParams with
* ALfilterType_LowPass. However, instead of passing a bandwidth,