aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-21 02:05:55 -0800
committerChris Robinson <[email protected]>2021-01-21 04:03:30 -0800
commit20f5e7c1fafcd40cdee2f7226ae81480ae049d1a (patch)
tree3b7e1aef92cefcbea1b9fca7f472d4831c0322cb /al/source.cpp
parent92c653e5f0617befccf0bd44d035f821ec7cb1ba (diff)
Avoid global constexpr arrays
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp
index cf536f2b..770e3778 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -471,8 +471,8 @@ void InitVoice(Voice *voice, ALsource *source, BufferlistItem *BufferList, ALCco
if(voice->mAmbiOrder && device->mAmbiOrder > voice->mAmbiOrder)
{
const uint8_t *OrderFromChan{(voice->mFmtChannels == FmtBFormat2D) ?
- AmbiIndex::OrderFrom2DChannel.data() :
- AmbiIndex::OrderFromChannel.data()};
+ AmbiIndex::OrderFrom2DChannel().data() :
+ AmbiIndex::OrderFromChannel().data()};
const auto scales = BFormatDec::GetHFOrderScales(voice->mAmbiOrder, device->mAmbiOrder);
const BandSplitter splitter{device->mXOverFreq / static_cast<float>(device->Frequency)};