aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-01-04 00:59:49 -0800
committerChris Robinson <[email protected]>2020-01-04 00:59:49 -0800
commitcdd24c7d010a18de26b8c1d20a71a12a7db7aafe (patch)
treea034ae7ff02127789004ff96070de3278d3f8187 /alc/alu.cpp
parent462bcd4ab7ba1603bef159ec48dc995045ced036 (diff)
Combine identical arrays
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 4b2a5c26..77a37593 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -904,15 +904,12 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat xpos, const ALfloat ypo
GetAmbiLayout(voice->mAmbiLayout).data()};
const float *scales{GetAmbiScales(voice->mAmbiScaling).data()};
- static const uint8_t OrderFromChan[MAX_AMBI_CHANNELS]{
- 0, 1,1,1, 2,2,2,2,2, 3,3,3,3,3,3,3,
- };
static const uint8_t ChansPerOrder[MAX_AMBI_ORDER+1]{1, 3, 5, 7,};
static const uint8_t OrderOffset[MAX_AMBI_ORDER+1]{0, 1, 4, 9,};
for(ALuint c{0};c < num_channels;c++)
{
const size_t acn{index_map[c]};
- const size_t order{OrderFromChan[acn]};
+ const size_t order{AmbiIndex::OrderFromChannel[acn]};
const size_t tocopy{ChansPerOrder[order]};
const size_t offset{OrderOffset[order]};
const float scale{scales[acn]};