aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/distortion.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-18 20:37:19 -0700
committerChris Robinson <[email protected]>2022-08-18 20:37:19 -0700
commited9408e53799cefd527bd3079bf1940d5c35bfc9 (patch)
tree85e87aa1d5bcc342e043e822e6da50c2fbd3bb3b /alc/effects/distortion.cpp
parent4f75f9258ca316fdb52db4d61158a8e22b442e46 (diff)
Inline and precompute some CalcDirectionCoeffs calls
Diffstat (limited to 'alc/effects/distortion.cpp')
-rw-r--r--alc/effects/distortion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/effects/distortion.cpp b/alc/effects/distortion.cpp
index dba13beb..5e277619 100644
--- a/alc/effects/distortion.cpp
+++ b/alc/effects/distortion.cpp
@@ -95,7 +95,7 @@ void DistortionState::update(const ContextBase *context, const EffectSlot *slot,
bandwidth = props->Distortion.EQBandwidth / (cutoff * 0.67f);
mBandpass.setParamsFromBandwidth(BiquadType::BandPass, cutoff/frequency/4.0f, 1.0f, bandwidth);
- const auto coeffs = CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}, 0.0f);
+ static constexpr auto coeffs = CalcDirectionCoeffs({0.0f, 0.0f, -1.0f});
mOutTarget = target.Main->Buffer;
ComputePanGains(target.Main, coeffs.data(), slot->Gain*props->Distortion.Gain, mGain);