Fix for C++11 compatibility
std::array::operator[] isn't constexpr until C++14.
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user