Package: rexima / 1.4-7

02_mixerlevelkeys.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Tony Mancill <tmancill@debian.org>
Subject: No description.

diff -urNad rexima~/rexima.1 rexima/rexima.1
--- rexima~/rexima.1	2006-07-06 21:42:53.000000000 -0700
+++ rexima/rexima.1	2008-04-06 16:02:50.000000000 -0700
@@ -135,6 +135,9 @@
 .I L
 increase level by 1% of maximum.
 .TP
+.IR 1 "-" 9
+set level of current device to 10%, 20%, .. 90% of maximum (according to the key pressed).
+.TP
 .I Space
 toggle whether device is a recording source or not.
 .TP
diff -urNad rexima~/rexima.c rexima/rexima.c
--- rexima~/rexima.c	2008-04-06 15:53:59.000000000 -0700
+++ rexima/rexima.c	2008-04-06 15:57:17.000000000 -0700
@@ -558,7 +558,16 @@
       clearok(curscr,TRUE);
       break;
     }
-  
+
+  /* tmancill@debian.org - add 1-9 keys */
+  if (key >= 0x31 && key <= 0x39) {
+    if(existmask&(1<<cursel))
+      {
+        mixer_setlevel(mixfd,cursel,(key - 0x30)*10);
+        drawlevel(cursel,mixer_getlevel(mixfd,cursel));
+      }
+    }
+
   drawsel(cursel,oldsel);
   
   refresh();