aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-07-13 13:56:22 -0700
committerChris Robinson <[email protected]>2021-07-13 13:56:22 -0700
commit604bf609d0c9cb7b4061177b74c57b44b223bb71 (patch)
tree3d91f79dccb3908a8c46d1cbc77fc74ac7241c80 /core
parent0977627ca66b46ea5e5f817cbf47d14b36566373 (diff)
Use the 2D channel orders for 2- and 3-channel UHJ
Diffstat (limited to 'core')
-rw-r--r--core/voice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/voice.cpp b/core/voice.cpp
index 261e9a79..ea99f8ad 100644
--- a/core/voice.cpp
+++ b/core/voice.cpp
@@ -830,7 +830,8 @@ void Voice::prepare(DeviceBase *device)
*/
if(mAmbiOrder && device->mAmbiOrder > mAmbiOrder)
{
- const uint8_t *OrderFromChan{(mFmtChannels == FmtBFormat2D) ?
+ const uint8_t *OrderFromChan{(mFmtChannels == FmtBFormat2D
+ || mFmtChannels == FmtUHJ2 || mFmtChannels == FmtUHJ3) ?
AmbiIndex::OrderFrom2DChannel().data() : AmbiIndex::OrderFromChannel().data()};
const auto scales = AmbiScale::GetHFOrderScales(mAmbiOrder, device->mAmbiOrder);