summaryrefslogtreecommitdiff
path: root/module/volume.m
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
commit46439007cf417cbd9ac8049bb4122c890097a0fa (patch)
tree6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /module/volume.m
parent37da2899f40661e3e9631e497da8dc59b971cbd0 (diff)
20060303-partial
Diffstat (limited to 'module/volume.m')
-rw-r--r--module/volume.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/module/volume.m b/module/volume.m
new file mode 100644
index 00000000..7ac075c8
--- /dev/null
+++ b/module/volume.m
@@ -0,0 +1,18 @@
+Volumectl: module
+{
+ PATH: con "/dis/lib/volume.dis";
+
+ # Volumectl should be spawned as a separate process from
+ # any process that desires volume control. The parameters
+ # are a ref Context that provides volumectl with access to
+ # the display, a chan of int through which volumectl receives
+ # Ir->Enter, Ir->VolUP, or Ir->VolDN commands (others are
+ # ignored), and a string that names the specific volume to
+ # be controlled (typically "audio out").
+ # Volumectl exits upon receiving Ir->Enter.
+ # It displays a volume control slider when receiving either
+ # Ir->VolUP or Ir->VolDN. The slider automatically disappears
+ # after a period of inactivity.
+
+ volumectl: fn(ctxt: ref Draw->Context, ch: chan of int, device: string);
+};