aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/distortion.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-19 09:10:36 -0800
committerChris Robinson <[email protected]>2018-11-19 09:10:36 -0800
commit387a34ca002bdc25cc31fb8514c0fa2e44af6e1b (patch)
tree268ac0fff88d694d90502072e6fce2b38c831e10 /Alc/effects/distortion.cpp
parent07386e79de93988faccc98166a036b6234ff9fe1 (diff)
Clean up the biquad filter a bit
Diffstat (limited to 'Alc/effects/distortion.cpp')
-rw-r--r--Alc/effects/distortion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/distortion.cpp b/Alc/effects/distortion.cpp
index 31f07de3..69603db9 100644
--- a/Alc/effects/distortion.cpp
+++ b/Alc/effects/distortion.cpp
@@ -93,14 +93,14 @@ static ALvoid ALdistortionState_update(ALdistortionState *state, const ALCcontex
/* Multiply sampling frequency by the amount of oversampling done during
* processing.
*/
- BiquadFilter_setParams(&state->lowpass, BiquadType_LowPass, 1.0f,
+ BiquadFilter_setParams(&state->lowpass, BiquadType::LowPass, 1.0f,
cutoff / (frequency*4.0f), calc_rcpQ_from_bandwidth(cutoff / (frequency*4.0f), bandwidth)
);
cutoff = props->Distortion.EQCenter;
/* Convert bandwidth in Hz to octaves. */
bandwidth = props->Distortion.EQBandwidth / (cutoff * 0.67f);
- BiquadFilter_setParams(&state->bandpass, BiquadType_BandPass, 1.0f,
+ BiquadFilter_setParams(&state->bandpass, BiquadType::BandPass, 1.0f,
cutoff / (frequency*4.0f), calc_rcpQ_from_bandwidth(cutoff / (frequency*4.0f), bandwidth)
);