diff options
author | Chris Robinson <[email protected]> | 2019-10-25 01:43:23 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-10-25 01:43:23 -0700 |
commit | 0cba99ed1bc2712c15c17f0940127e6f84395729 (patch) | |
tree | c5898dc9022da86450204f71579723c41d54bc92 /alc/hrtf.cpp | |
parent | 5ac1f192419a5d1d435a0f8703560823075799af (diff) |
Avoid static constexpr for arrays iterated over at run-time
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r-- | alc/hrtf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index fa0085ff..c22848d6 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -300,7 +300,7 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, ALuint ldelay, rdelay; }; - static constexpr int OrderFromChan[MAX_AMBI_CHANNELS]{ + static const int OrderFromChan[MAX_AMBI_CHANNELS]{ 0, 1,1,1, 2,2,2,2,2, 3,3,3,3,3,3,3, }; /* Set this to true for dual-band HRTF processing. May require better @@ -718,7 +718,7 @@ std::unique_ptr<HrtfEntry> LoadHrtf00(std::istream &data, const char *filename) } } - static constexpr ALfloat distance{0.0f}; + static const ALfloat distance{0.0f}; return CreateHrtfStore(rate, irSize, 1, &evCount, &distance, azCount.data(), evOffset.data(), irCount, &reinterpret_cast<ALfloat(&)[2]>(coeffs[0]), &reinterpret_cast<ALubyte(&)[2]>(delays[0]), filename); @@ -817,7 +817,7 @@ std::unique_ptr<HrtfEntry> LoadHrtf01(std::istream &data, const char *filename) } } - static constexpr ALfloat distance{0.0f}; + static const ALfloat distance{0.0f}; return CreateHrtfStore(rate, irSize, 1, &evCount, &distance, azCount.data(), evOffset.data(), irCount, &reinterpret_cast<ALfloat(&)[2]>(coeffs[0]), &reinterpret_cast<ALubyte(&)[2]>(delays[0]), filename); |