From 62995788b1fbdf2c64ef23158c60e8e5ddd290b5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 10 Nov 2023 20:48:21 -0800 Subject: Remove some explicit template parameters --- alc/alu.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'alc') diff --git a/alc/alu.cpp b/alc/alu.cpp index 203bd7cf..e0858b18 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -603,19 +603,18 @@ inline std::array ScaleAzimuthFront3_2(std::array pos) * precomputed since they're constant. The second-order coefficients are * followed by the third-order coefficients, etc. */ -template -constexpr size_t CalcRotatorSize() -{ return (L*2 + 1)*(L*2 + 1) + CalcRotatorSize(); } - -template<> constexpr size_t CalcRotatorSize<0>() = delete; -template<> constexpr size_t CalcRotatorSize<1>() = delete; -template<> constexpr size_t CalcRotatorSize<2>() { return 5*5; } +constexpr size_t CalcRotatorSize(size_t l) noexcept +{ + if(l >= 2) + return (l*2 + 1)*(l*2 + 1) + CalcRotatorSize(l-1); + return 0; +} struct RotatorCoeffs { struct CoeffValues { float u, v, w; }; - std::array()> mCoeffs{}; + std::array mCoeffs{}; RotatorCoeffs() { -- cgit v1.2.3