From f098f253324d4d9b0669e061fab006295d826a53 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 14 Sep 2023 07:31:25 -0700 Subject: Store channel positions as vectors instead of angles To avoid extraneous conversions between angles and vectors --- alc/effects/dedicated.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/effects/dedicated.cpp') diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index 047e6761..e82b13d9 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -94,7 +94,7 @@ void DedicatedState::update(const ContextBase*, const EffectSlot *slot, } else { - static constexpr auto coeffs = CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}); + static constexpr auto coeffs = CalcDirectionCoeffs(std::array{0.0f, 0.0f, -1.0f}); mOutTarget = target.Main->Buffer; ComputePanGains(target.Main, coeffs.data(), Gain, mTargetGains); -- cgit v1.2.3