diff options
author | Chris Robinson <[email protected]> | 2021-07-13 06:31:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-07-13 06:31:13 -0700 |
commit | d998c03a2761920b1edc4f1da09a04072af83d7e (patch) | |
tree | ede3bda406061fe8b47072b3d459b0ead2e879e8 /alc/alu.cpp | |
parent | fb2cb2bd064c681defda5f1019faa5189ec3bb34 (diff) |
Add a UHJ-specific coefficient scaling array
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 9 |
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(); } |