diff options
author | Chris Robinson <[email protected]> | 2020-04-21 23:58:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-21 23:58:53 -0700 |
commit | 2deb5e47d1f72f211961289e6fa92ae6c89184fb (patch) | |
tree | e8a47e93709f4be475ffa2b57d0a5af358f4b7ed /alc/effects/dedicated.cpp | |
parent | a97e6e6a125c561d0804c3b0d5976b8f18093027 (diff) |
Avoid an unnecessary out parameter
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r-- | alc/effects/dedicated.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index c1741f64..2f985412 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -78,11 +78,10 @@ void DedicatedState::update(const ALCcontext*, const ALeffectslot *slot, const E } else { - float coeffs[MAX_AMBI_CHANNELS]; - CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}, 0.0f, coeffs); + const auto coeffs = CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}, 0.0f); mOutTarget = target.Main->Buffer; - ComputePanGains(target.Main, coeffs, Gain, mTargetGains); + ComputePanGains(target.Main, coeffs.data(), Gain, mTargetGains); } } } |