Fix for C++11 compatibility

std::array::operator[] isn't constexpr until C++14.
This commit is contained in:
Chris Robinson
2018-12-22 11:41:03 -08:00
parent 10ce121dbd
commit d4d98e2fe9
+4 -4
View File
@@ -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