diff options
author | Chris Robinson <[email protected]> | 2022-08-18 20:37:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-08-18 20:37:19 -0700 |
commit | ed9408e53799cefd527bd3079bf1940d5c35bfc9 (patch) | |
tree | 85e87aa1d5bcc342e043e822e6da50c2fbd3bb3b /alc/effects/dedicated.cpp | |
parent | 4f75f9258ca316fdb52db4d61158a8e22b442e46 (diff) |
Inline and precompute some CalcDirectionCoeffs calls
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r-- | alc/effects/dedicated.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index 4d7a39f0..a1c85ecd 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -94,7 +94,7 @@ void DedicatedState::update(const ContextBase*, const EffectSlot *slot, } else { - 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(), Gain, mTargetGains); |