summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2020-06-17 21:01:44 -0500
committerrcombs <rcombs@rcombs.me>2021-11-28 16:45:54 -0600
commitb044f08149f2d46641ba0fdde89dc5dbc0450b6a (patch)
treefaec0a5ab61d89b6821e3e36166ab80047543b22
parent761d4c8353fb629a2044d8a65242dea3c4a912fa (diff)
downloadmpv-rcombs/macos-fixes.tar.bz2
mpv-rcombs/macos-fixes.tar.xz
ao_coreaudio: fix some incorrect channel mappingsrcombs/macos-fixes
-rw-r--r--audio/out/ao_coreaudio_chmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/audio/out/ao_coreaudio_chmap.c b/audio/out/ao_coreaudio_chmap.c
index 13ac87e2ba..a1b2b82d96 100644
--- a/audio/out/ao_coreaudio_chmap.c
+++ b/audio/out/ao_coreaudio_chmap.c
@@ -26,13 +26,13 @@ static const int speaker_map[][2] = {
{ kAudioChannelLabel_Right, MP_SPEAKER_ID_FR },
{ kAudioChannelLabel_Center, MP_SPEAKER_ID_FC },
{ kAudioChannelLabel_LFEScreen, MP_SPEAKER_ID_LFE },
- { kAudioChannelLabel_LeftSurround, MP_SPEAKER_ID_BL },
- { kAudioChannelLabel_RightSurround, MP_SPEAKER_ID_BR },
+ { kAudioChannelLabel_LeftSurround, MP_SPEAKER_ID_SL },
+ { kAudioChannelLabel_RightSurround, MP_SPEAKER_ID_SR },
{ kAudioChannelLabel_LeftCenter, MP_SPEAKER_ID_FLC },
{ kAudioChannelLabel_RightCenter, MP_SPEAKER_ID_FRC },
{ kAudioChannelLabel_CenterSurround, MP_SPEAKER_ID_BC },
- { kAudioChannelLabel_LeftSurroundDirect, MP_SPEAKER_ID_SL },
- { kAudioChannelLabel_RightSurroundDirect, MP_SPEAKER_ID_SR },
+ { kAudioChannelLabel_RearSurroundLeft, MP_SPEAKER_ID_BL },
+ { kAudioChannelLabel_RearSurroundRight, MP_SPEAKER_ID_BR },
{ kAudioChannelLabel_TopCenterSurround, MP_SPEAKER_ID_TC },
{ kAudioChannelLabel_VerticalHeightLeft, MP_SPEAKER_ID_TFL },
{ kAudioChannelLabel_VerticalHeightCenter, MP_SPEAKER_ID_TFC },
@@ -42,8 +42,8 @@ static const int speaker_map[][2] = {
{ kAudioChannelLabel_TopBackRight, MP_SPEAKER_ID_TBR },
// unofficial extensions
- { kAudioChannelLabel_RearSurroundLeft, MP_SPEAKER_ID_SDL },
- { kAudioChannelLabel_RearSurroundRight, MP_SPEAKER_ID_SDR },
+ { kAudioChannelLabel_LeftSurroundDirect, MP_SPEAKER_ID_SDL },
+ { kAudioChannelLabel_RightSurroundDirect, MP_SPEAKER_ID_SDR },
{ kAudioChannelLabel_LeftWide, MP_SPEAKER_ID_WL },
{ kAudioChannelLabel_RightWide, MP_SPEAKER_ID_WR },
{ kAudioChannelLabel_LFE2, MP_SPEAKER_ID_LFE2 },