aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-07-30 07:38:26 -0700
committerChris Robinson <[email protected]>2021-07-30 07:38:26 -0700
commit29fba79cd5dd06888da22c7fc18779062c28fc3a (patch)
tree1548234679191873024c7ead9eb07c6088885b7e /alc/alc.cpp
parent486eca8ce68e15fa5fff6a53d410aee9251245dd (diff)
Avoid 5.1Rear as its own channel configuration
It messes with 5.1 sources using direct channels, and the surround channels are supposed to map to the side labels. Individual backends can deal with the channel order/label differences, as they already do to a degree.
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 7cc35617..21c95cbd 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1359,8 +1359,7 @@ ALCenum EnumFromDevFmt(DevFmtChannels channels)
case DevFmtMono: return ALC_MONO_SOFT;
case DevFmtStereo: return ALC_STEREO_SOFT;
case DevFmtQuad: return ALC_QUAD_SOFT;
- case DevFmtX51: /* fall-through */
- case DevFmtX51Rear: return ALC_5POINT1_SOFT;
+ case DevFmtX51: return ALC_5POINT1_SOFT;
case DevFmtX61: return ALC_6POINT1_SOFT;
case DevFmtX71: return ALC_7POINT1_SOFT;
case DevFmtAmbi3D: return ALC_BFORMAT3D_SOFT;
@@ -1443,11 +1442,6 @@ const std::array<InputRemixMap,3> X51Downmix{{
{ BackRight, {{{SideLeft, 0.0f}, {SideRight, 1.0f}}} },
{ BackCenter, {{{SideLeft, 0.5f}, {SideRight, 0.5f}}} },
}};
-const std::array<InputRemixMap,3> X51RearDownmix{{
- { SideLeft, {{{BackLeft, 1.0f}, {BackRight, 0.0f}}} },
- { SideRight, {{{BackLeft, 0.0f}, {BackRight, 1.0f}}} },
- { BackCenter, {{{BackLeft, 0.5f}, {BackRight, 0.5f}}} },
-}};
const std::array<InputRemixMap,2> X61Downmix{{
{ BackLeft, {{{BackCenter, 0.5f}, {SideLeft, 0.5f}}} },
{ BackRight, {{{BackCenter, 0.5f}, {SideRight, 0.5f}}} },
@@ -1830,7 +1824,6 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
case DevFmtStereo: device->RealOut.RemixMap = StereoDownmix; break;
case DevFmtQuad: device->RealOut.RemixMap = QuadDownmix; break;
case DevFmtX51: device->RealOut.RemixMap = X51Downmix; break;
- case DevFmtX51Rear: device->RealOut.RemixMap = X51RearDownmix; break;
case DevFmtX61: device->RealOut.RemixMap = X61Downmix; break;
case DevFmtX71: device->RealOut.RemixMap = X71Downmix; break;
case DevFmtAmbi3D: break;
@@ -3180,7 +3173,7 @@ START_API_FUNC
{ "surround51", DevFmtX51, 0 },
{ "surround61", DevFmtX61, 0 },
{ "surround71", DevFmtX71, 0 },
- { "surround51rear", DevFmtX51Rear, 0 },
+ { "surround51rear", DevFmtX51, 0 },
{ "ambi1", DevFmtAmbi3D, 1 },
{ "ambi2", DevFmtAmbi3D, 2 },
{ "ambi3", DevFmtAmbi3D, 3 },