aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/fshifter.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/fshifter.cpp
parent4f75f9258ca316fdb52db4d61158a8e22b442e46 (diff)
Inline and precompute some CalcDirectionCoeffs calls
Diffstat (limited to 'alc/effects/fshifter.cpp')
-rw-r--r--alc/effects/fshifter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/fshifter.cpp b/alc/effects/fshifter.cpp
index bed6c79f..f2c8f967 100644
--- a/alc/effects/fshifter.cpp
+++ b/alc/effects/fshifter.cpp
@@ -160,8 +160,8 @@ void FshifterState::update(const ContextBase *context, const EffectSlot *slot,
break;
}
- const auto lcoeffs = CalcDirectionCoeffs({-1.0f, 0.0f, 0.0f}, 0.0f);
- const auto rcoeffs = CalcDirectionCoeffs({ 1.0f, 0.0f, 0.0f}, 0.0f);
+ static constexpr auto lcoeffs = CalcDirectionCoeffs({-1.0f, 0.0f, 0.0f});
+ static constexpr auto rcoeffs = CalcDirectionCoeffs({ 1.0f, 0.0f, 0.0f});
mOutTarget = target.Main->Buffer;
ComputePanGains(target.Main, lcoeffs.data(), slot->Gain, mGains[0].Target);