Skip to content

Commit

Permalink
lib: add libvlc_AudioStereoMode_Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
tguillem authored and jbkempf committed Dec 10, 2022
1 parent 03e671c commit 42b645e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/vlc/libvlc_media_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
3 changes: 2 additions & 1 deletion lib/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 42b645e

Please sign in to comment.