aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-28 06:11:40 -0700
committerChris Robinson <[email protected]>2022-08-28 06:11:40 -0700
commit84134d7399fec757fe2051bb74a018a9fa15b7b9 (patch)
tree3b830600de6d5e55fc02afee55d33d84713df5b3 /alc/alc.cpp
parent057a350c1e15906d12559acb56115fbef2d9a3bf (diff)
Allow the remix tables to be variable length
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 8e11a5d4..e89ad598 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1513,12 +1513,12 @@ ALCenum EnumFromDevAmbi(DevAmbiScaling scaling)
* PulseAudio's.
*/
const std::array<InputRemixMap,6> StereoDownmix{{
- { FrontCenter, {{{FrontLeft, 0.5f}, {FrontRight, 0.5f}}} },
- { SideLeft, {{{FrontLeft, 1.0f/9.0f}, {FrontRight, 0.0f}}} },
- { SideRight, {{{FrontLeft, 0.0f}, {FrontRight, 1.0f/9.0f}}} },
- { BackLeft, {{{FrontLeft, 1.0f/9.0f}, {FrontRight, 0.0f}}} },
- { BackRight, {{{FrontLeft, 0.0f}, {FrontRight, 1.0f/9.0f}}} },
- { BackCenter, {{{FrontLeft, 0.5f/9.0f}, {FrontRight, 0.5f/9.0f}}} },
+ { FrontCenter, {{{FrontLeft, 0.5f}, {FrontRight, 0.5f}}} },
+ { SideLeft, {{{FrontLeft, 1.0f/9.0f}}} },
+ { SideRight, {{{FrontRight, 1.0f/9.0f}}} },
+ { BackLeft, {{{FrontLeft, 1.0f/9.0f}}} },
+ { BackRight, {{{FrontRight, 1.0f/9.0f}}} },
+ { BackCenter, {{{FrontLeft, 0.5f/9.0f}, {FrontRight, 0.5f/9.0f}}} },
}};
const std::array<InputRemixMap,4> QuadDownmix{{
{ FrontCenter, {{{FrontLeft, 0.5f}, {FrontRight, 0.5f}}} },
@@ -1527,9 +1527,9 @@ const std::array<InputRemixMap,4> QuadDownmix{{
{ BackCenter, {{{BackLeft, 0.5f}, {BackRight, 0.5f}}} },
}};
const std::array<InputRemixMap,3> X51Downmix{{
- { BackLeft, {{{SideLeft, 1.0f}, {SideRight, 0.0f}}} },
- { BackRight, {{{SideLeft, 0.0f}, {SideRight, 1.0f}}} },
- { BackCenter, {{{SideLeft, 0.5f}, {SideRight, 0.5f}}} },
+ { BackLeft, {{{SideLeft, 1.0f}}} },
+ { BackRight, {{{SideRight, 1.0f}}} },
+ { BackCenter, {{{SideLeft, 0.5f}, {SideRight, 0.5f}}} },
}};
const std::array<InputRemixMap,2> X61Downmix{{
{ BackLeft, {{{BackCenter, 0.5f}, {SideLeft, 0.5f}}} },