aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-22 11:41:03 -0800
committerChris Robinson <[email protected]>2018-12-22 11:41:03 -0800
commitd4d98e2fe9820f390515baf581dea7dc9bec1431 (patch)
treed0d091b4bfea37edf6e093759d942345db0c7a5e /Alc/alu.cpp
parent10ce121dbd05e048c89a2b7c32f2ddabbc8fbe77 (diff)
Fix for C++11 compatibility
std::array::operator[] isn't constexpr until C++14.
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index be0bafbf..a2c930fc 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -667,10 +667,10 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALfloat Elev
* matrix is transposed, for the inputs to align on the rows and
* outputs on the columns.
*/
- static constexpr ALfloat scale0{AmbiScale::FromFuMa[0]};
- static constexpr ALfloat scale1{AmbiScale::FromFuMa[1]};
- static constexpr ALfloat scale2{AmbiScale::FromFuMa[2]};
- static constexpr ALfloat scale3{AmbiScale::FromFuMa[3]};
+ static const ALfloat scale0{AmbiScale::FromFuMa[0]};
+ static const ALfloat scale1{AmbiScale::FromFuMa[1]};
+ static const ALfloat scale2{AmbiScale::FromFuMa[2]};
+ static const ALfloat scale3{AmbiScale::FromFuMa[3]};
const alu::Matrix matrix{
// ACN0 ACN1 ACN2 ACN3
scale0, 0.0f, 0.0f, 0.0f, // Ambi W