From b8d73a226ab4251f94a9096fa95a20fac58e826b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 27 Aug 2022 03:43:33 -0700 Subject: Add a 2D fourth-order upsampler This will be necessary for 2D fourth-order sources with 3D fourth-order output. --- alc/alu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'alc/alu.cpp') diff --git a/alc/alu.cpp b/alc/alu.cpp index 0eeef026..edafabff 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -939,6 +939,9 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con AmbiScale::ThirdOrder2DUp : AmbiScale::ThirdOrderUp; UpsampleBFormatTransform(Device->mAmbiOrder, upsampler, shrot); } + else if(voice->mAmbiOrder == 4) + UpsampleBFormatTransform(Device->mAmbiOrder, AmbiScale::FourthOrder2DUp, + shrot); } /* Convert the rotation matrix for input ordering and scaling, and -- cgit v1.2.3