aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 2ab4dcbc..fa362586 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -347,8 +347,13 @@ inline uint dither_rng(uint *seed) noexcept
inline auto& GetAmbiScales(AmbiScaling scaletype) noexcept
{
- if(scaletype == AmbiScaling::FuMa) return AmbiScale::FromFuMa();
- if(scaletype == AmbiScaling::SN3D) return AmbiScale::FromSN3D();
+ switch(scaletype)
+ {
+ case AmbiScaling::FuMa: return AmbiScale::FromFuMa();
+ case AmbiScaling::SN3D: return AmbiScale::FromSN3D();
+ case AmbiScaling::UHJ: return AmbiScale::FromUHJ();
+ case AmbiScaling::N3D: break;
+ }
return AmbiScale::FromN3D();
}