aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/dedicated.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-04-21 23:58:53 -0700
committerChris Robinson <[email protected]>2020-04-21 23:58:53 -0700
commit2deb5e47d1f72f211961289e6fa92ae6c89184fb (patch)
treee8a47e93709f4be475ffa2b57d0a5af358f4b7ed /alc/effects/dedicated.cpp
parenta97e6e6a125c561d0804c3b0d5976b8f18093027 (diff)
Avoid an unnecessary out parameter
Diffstat (limited to 'alc/effects/dedicated.cpp')
-rw-r--r--alc/effects/dedicated.cpp5
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);
}
}
}