From 42b645e7fc7d8d88fa84e186a190c3afcfdd68c1 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Thu, 8 Dec 2022 11:07:26 +0100 Subject: [PATCH] lib: add libvlc_AudioStereoMode_Mono --- include/vlc/libvlc_media_player.h | 3 ++- lib/audio.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h index 92a40de18a06..2403413eb6c1 100644 --- a/include/vlc/libvlc_media_player.h +++ b/include/vlc/libvlc_media_player.h @@ -2225,7 +2225,8 @@ typedef enum libvlc_audio_output_stereomode_t { libvlc_AudioStereoMode_RStereo = 2, libvlc_AudioStereoMode_Left = 3, libvlc_AudioStereoMode_Right = 4, - libvlc_AudioStereoMode_Dolbys = 5 + libvlc_AudioStereoMode_Dolbys = 5, + libvlc_AudioStereoMode_Mono = 7, } libvlc_audio_output_stereomode_t; diff --git a/lib/audio.c b/lib/audio.c index aa6e0d9c7fb9..eea0142e698b 100644 --- a/lib/audio.c +++ b/lib/audio.c @@ -371,7 +371,8 @@ int libvlc_audio_set_stereomode( libvlc_media_player_t *mp, libvlc_audio_output_ libvlc_AudioStereoMode_RStereo == AOUT_VAR_CHAN_RSTEREO && libvlc_AudioStereoMode_Left == AOUT_VAR_CHAN_LEFT && libvlc_AudioStereoMode_Right == AOUT_VAR_CHAN_RIGHT && - libvlc_AudioStereoMode_Dolbys == AOUT_VAR_CHAN_DOLBYS, + libvlc_AudioStereoMode_Dolbys == AOUT_VAR_CHAN_DOLBYS && + libvlc_AudioStereoMode_Mono == AOUT_VAR_CHAN_MONO, "Mismatch with stereo-mode LibVLC/VLC enums"); audio_output_t *p_aout = GetAOut( mp );