diff options
author | Chris Robinson <[email protected]> | 2022-08-27 03:43:33 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-08-27 03:43:33 -0700 |
commit | b8d73a226ab4251f94a9096fa95a20fac58e826b (patch) | |
tree | a3f34717ec2aada35fd774c7350a885d641201cd /alc/alu.cpp | |
parent | 0ae6955f1cf7d43a8652991fdbb6b9c14dedbc9b (diff) |
Add a 2D fourth-order upsampler
This will be necessary for 2D fourth-order sources with 3D fourth-order output.
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |