aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-27 03:43:33 -0700
committerChris Robinson <[email protected]>2022-08-27 03:43:33 -0700
commitb8d73a226ab4251f94a9096fa95a20fac58e826b (patch)
treea3f34717ec2aada35fd774c7350a885d641201cd /alc/alu.cpp
parent0ae6955f1cf7d43a8652991fdbb6b9c14dedbc9b (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.cpp3
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