From 4f346caea37b112d07e2c22a178c0bdc141c7d01 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 14 Aug 2022 00:56:38 -0700 Subject: Update some arrays in preparation for fourth order support --- alc/panning.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'alc/panning.cpp') diff --git a/alc/panning.cpp b/alc/panning.cpp index ea716e4d..c2eef3cf 100644 --- a/alc/panning.cpp +++ b/alc/panning.cpp @@ -331,7 +331,8 @@ DecoderView MakeDecoderView(ALCdevice *device, const AmbDecConf *conf, { DecoderView ret{}; - decoder.mOrder = (conf->ChanMask > Ambi2OrderMask) ? uint8_t{3} : + decoder.mOrder = (conf->ChanMask > Ambi3OrderMask) ? uint8_t{4} : + (conf->ChanMask > Ambi2OrderMask) ? uint8_t{3} : (conf->ChanMask > Ambi1OrderMask) ? uint8_t{2} : uint8_t{1}; decoder.mIs3D = (conf->ChanMask&AmbiPeriphonicMask) != 0; @@ -704,6 +705,7 @@ void InitPanning(ALCdevice *device, const bool hqdec=false, const bool stablize= TRACE("Enabling %s-band %s-order%s ambisonic decoder\n", !dual_band ? "single" : "dual", + (decoder.mOrder > 3) ? "fourth" : (decoder.mOrder > 2) ? "third" : (decoder.mOrder > 1) ? "second" : "first", decoder.mIs3D ? " periphonic" : ""); -- cgit v1.2.3