aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/distortion.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-25 11:54:51 -0700
committerChris Robinson <[email protected]>2019-05-25 11:54:51 -0700
commit8ca97a7d9a336b9de7a1d1dc400279e8de76d65e (patch)
treea98d548e9625aa8850e7e6d00ae5af8741c1424a /Alc/effects/distortion.cpp
parent5b5dee07b43808907fba0d2dff5a00ea9069048b (diff)
Move a couple functions into its related class
Diffstat (limited to 'Alc/effects/distortion.cpp')
-rw-r--r--Alc/effects/distortion.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/effects/distortion.cpp b/Alc/effects/distortion.cpp
index d2bcd018..7ef77c69 100644
--- a/Alc/effects/distortion.cpp
+++ b/Alc/effects/distortion.cpp
@@ -79,15 +79,13 @@ void DistortionState::update(const ALCcontext *context, const ALeffectslot *slot
*/
auto frequency = static_cast<ALfloat>(device->Frequency);
mLowpass.setParams(BiquadType::LowPass, 1.0f, cutoff / (frequency*4.0f),
- calc_rcpQ_from_bandwidth(cutoff / (frequency*4.0f), bandwidth)
- );
+ mLowpass.rcpQFromBandwidth(cutoff / (frequency*4.0f), bandwidth));
cutoff = props->Distortion.EQCenter;
/* Convert bandwidth in Hz to octaves. */
bandwidth = props->Distortion.EQBandwidth / (cutoff * 0.67f);
mBandpass.setParams(BiquadType::BandPass, 1.0f, cutoff / (frequency*4.0f),
- calc_rcpQ_from_bandwidth(cutoff / (frequency*4.0f), bandwidth)
- );
+ mBandpass.rcpQFromBandwidth(cutoff / (frequency*4.0f), bandwidth));
ALfloat coeffs[MAX_AMBI_CHANNELS];
CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}, 0.0f, coeffs);