[MPlayer-dev-eng] [PATCH] XF86AudioLowerVolume/XF86AudioRaiseVolume

Michael Mauch michael.mauch at gmx.de
Wed Aug 29 20:34:46 CEST 2007


Hi,

the volume up/down keys on my keyboard send XF86AudioRaiseVolume and
XF86AudioLowerVolume. I would like to have them handled by mplayer,
because that allows for -softvol and nice OSD feedback. I verified that
these bindings do not affect global keybindings made with xbindkeys or
KDE (these take precedence), so I hope there are no side effects.

Patch against current svn attached.

Regards...
		Michael
-------------- next part --------------
Index: libvo/x11_common.c
===================================================================
--- libvo/x11_common.c	(revision 24300)
+++ libvo/x11_common.c	(working copy)
@@ -576,6 +576,12 @@
         case XF86XK_AudioNext:
             mplayer_put_key(KEY_NEXT);
             break;
+        case XF86XK_AudioLowerVolume:
+            mplayer_put_key(KEY_VOLUME_DOWN);
+            break;
+        case XF86XK_AudioRaiseVolume:
+            mplayer_put_key(KEY_VOLUME_UP);
+            break;
         default:
             break;
     }


More information about the MPlayer-dev-eng mailing list