aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-04 15:19:48 -0800
committerChris Robinson <[email protected]>2018-11-04 15:19:48 -0800
commit087fdd3ca983da6b0727adaa33f7519abf0ed296 (patch)
treec51806df86275fe4845ad70a6831f20971998425 /Alc
parent96819237d6317c62959dd25bcd37d17e3fa790e8 (diff)
Properly mark arrays constexpr and/or static
Diffstat (limited to 'Alc')
-rw-r--r--Alc/bformatdec.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/bformatdec.cpp b/Alc/bformatdec.cpp
index 2e0e3b3b..c9e7b567 100644
--- a/Alc/bformatdec.cpp
+++ b/Alc/bformatdec.cpp
@@ -66,7 +66,7 @@ namespace {
#define NUM_BANDS 2
/* These points are in AL coordinates! */
-const ALfloat Ambi3DPoints[8][3] = {
+constexpr ALfloat Ambi3DPoints[8][3] = {
{ -0.577350269f, 0.577350269f, -0.577350269f },
{ 0.577350269f, 0.577350269f, -0.577350269f },
{ -0.577350269f, 0.577350269f, 0.577350269f },
@@ -76,7 +76,7 @@ const ALfloat Ambi3DPoints[8][3] = {
{ -0.577350269f, -0.577350269f, 0.577350269f },
{ 0.577350269f, -0.577350269f, 0.577350269f },
};
-const ALfloat Ambi3DDecoder[8][MAX_AMBI_COEFFS] = {
+constexpr ALfloat Ambi3DDecoder[8][MAX_AMBI_COEFFS] = {
{ 0.125f, 0.125f, 0.125f, 0.125f },
{ 0.125f, -0.125f, 0.125f, 0.125f },
{ 0.125f, 0.125f, 0.125f, -0.125f },
@@ -86,7 +86,7 @@ const ALfloat Ambi3DDecoder[8][MAX_AMBI_COEFFS] = {
{ 0.125f, 0.125f, -0.125f, -0.125f },
{ 0.125f, -0.125f, -0.125f, -0.125f },
};
-const ALfloat Ambi3DDecoderHFScale[MAX_AMBI_COEFFS] = {
+constexpr ALfloat Ambi3DDecoderHFScale[MAX_AMBI_COEFFS] = {
2.0f,
1.15470054f, 1.15470054f, 1.15470054f
};
@@ -183,7 +183,7 @@ void bformatdec_free(BFormatDec **dec)
void bformatdec_reset(BFormatDec *dec, const AmbDecConf *conf, ALsizei chancount, ALuint srate, const ALsizei chanmap[MAX_OUTPUT_CHANNELS])
{
- constexpr ALsizei map2DTo3D[MAX_AMBI2D_COEFFS] = {
+ static constexpr ALsizei map2DTo3D[MAX_AMBI2D_COEFFS] = {
0, 1, 3, 4, 8, 9, 15
};
const ALfloat *coeff_scale = N3D2N3DScale;