[vlc-commits] player: add helper to toggle mute
    Victorien Le Couviour--Tuffet 
    git at videolan.org
       
    Tue Nov 27 13:16:15 CET 2018
    
    
  
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Mon Nov 19 19:10:25 2018 +0100| [ae3d4eed7096c15e02d6a0375fa0ecbff520a61e] | committer: Thomas Guillem
player: add helper to toggle mute
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae3d4eed7096c15e02d6a0375fa0ecbff520a61e
---
 include/vlc_player.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff --git a/include/vlc_player.h b/include/vlc_player.h
index a460cbda22..ca59634e3d 100644
--- a/include/vlc_player.h
+++ b/include/vlc_player.h
@@ -2560,6 +2560,16 @@ VLC_API int
 vlc_player_aout_Mute(vlc_player_t *player, bool mute);
 
 /**
+ * Helper to toggle the mute state
+ */
+static inline int
+vlc_player_aout_ToggleMute(vlc_player_t *player)
+{
+    return vlc_player_aout_Mute(player,
+                                !vlc_player_aout_IsMuted(player));
+}
+
+/**
  * Enable or disable an audio filter
  *
  * @see aout_EnableFilter()
    
    
More information about the vlc-commits
mailing list