osxaudio: correct mapping for left/right surround

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5731>
This commit is contained in:
Maksym Khomenko 2023-11-29 17:40:52 +02:00 committed by GStreamer Marge Bot
parent 6059391e10
commit f1e02ebb92

View file

@ -388,9 +388,9 @@ gst_audio_channel_position_to_core_audio (GstAudioChannelPosition
case GST_AUDIO_CHANNEL_POSITION_REAR_CENTER:
return kAudioChannelLabel_CenterSurround;
case GST_AUDIO_CHANNEL_POSITION_REAR_LEFT:
return kAudioChannelLabel_LeftSurround;
return kAudioChannelLabel_RearSurroundLeft;
case GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT:
return kAudioChannelLabel_RightSurround;
return kAudioChannelLabel_RearSurroundRight;
case GST_AUDIO_CHANNEL_POSITION_LFE1:
return kAudioChannelLabel_LFEScreen;
case GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER:
@ -458,9 +458,9 @@ gst_core_audio_channel_label_to_gst (AudioChannelLabel label,
case kAudioChannelLabel_LFEScreen:
return GST_AUDIO_CHANNEL_POSITION_LFE1;
case kAudioChannelLabel_LeftSurround:
return GST_AUDIO_CHANNEL_POSITION_REAR_LEFT;
return GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT;
case kAudioChannelLabel_RightSurround:
return GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT;
return GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT;
case kAudioChannelLabel_LeftSurroundDirect:
return GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT;
case kAudioChannelLabel_RightSurroundDirect: