From b5133d4d75247d50dec4984f2dcd26dbf2a2e18b Mon Sep 17 00:00:00 2001 From: Sigmund Augdal Helberg Date: Sun, 16 Feb 2003 10:25:57 +0000 Subject: [PATCH] Added support for volume up/down buttons. --- doc/lirc/example.lircrc | 12 ++++++++++++ modules/control/lirc/lirc.c | 12 ++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/doc/lirc/example.lircrc b/doc/lirc/example.lircrc index 24678674a5..200d3d4a97 100644 --- a/doc/lirc/example.lircrc +++ b/doc/lirc/example.lircrc @@ -62,3 +62,15 @@ begin button = FORWARD_UP config = FAST end + +begin + prog = vlc + button = VOLUME_DOWN_DOWN + config = VOL_DOWN +end + +begin + prog = vlc + button = VOLUME_UP_DOWN + config = VOL_UP +end diff --git a/modules/control/lirc/lirc.c b/modules/control/lirc/lirc.c index a5014603bf..48ed7f49ef 100644 --- a/modules/control/lirc/lirc.c +++ b/modules/control/lirc/lirc.c @@ -2,7 +2,7 @@ * lirc.c : lirc plugin for vlc ***************************************************************************** * Copyright (C) 2002 VideoLAN - * $Id: lirc.c,v 1.3 2003/01/12 15:38:35 sigmunau Exp $ + * $Id: lirc.c,v 1.4 2003/02/16 10:25:57 sigmunau Exp $ * * Authors: Sigmund Augdal * @@ -32,6 +32,7 @@ #include #include #include +#include #include @@ -169,7 +170,14 @@ static void Run( intf_thread_t *p_intf ) p_intf->p_vlc->b_die = VLC_TRUE; continue; } - + if( !strcmp( c, "VOL_UP" ) ) + { + aout_VolumeUp( p_intf, 1, NULL ); + } + if( !strcmp( c, "VOL_DOWN" ) ) + { + aout_VolumeDown( p_intf, 1, NULL ); + } if( !strcmp( c, "FULLSCREEN" ) ) { vout_thread_t *p_vout; -- 2.39.2