blob: 7ac075c8156ef0776e65c6631884d6096861bf1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
};
|