[MPlayer-users] [Patch] XF86AudioLowerVolume/XF86AudioRaiseVolume

Michael Mauch michael.mauch at gmx.de
Wed Aug 29 00:18:13 CEST 2007


Hi,

the volume up/down keys on my keyboard send XF86AudioRaiseVolume and
XF86AudioLowerVolume. Are these supposed to work, or should I map them
to something else?

Anyway, here's a patch that makes these key codes known to mplayer.

Regards...
		Michael


--- libvo/x11_common.c~	2007-07-29 00:21:29.000000000 +0200
+++ libvo/x11_common.c	2007-08-28 23:51:39.257470073 +0200
@@ -576,6 +576,12 @@ static void vo_x11_putkey_ext(int keysym
         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-users mailing list