1Volumectl: module 2{ 3 PATH: con "/dis/lib/volume.dis"; 4 5 # Volumectl should be spawned as a separate process from 6 # any process that desires volume control. The parameters 7 # are a ref Context that provides volumectl with access to 8 # the display, a chan of int through which volumectl receives 9 # Ir->Enter, Ir->VolUP, or Ir->VolDN commands (others are 10 # ignored), and a string that names the specific volume to 11 # be controlled (typically "audio out"). 12 # Volumectl exits upon receiving Ir->Enter. 13 # It displays a volume control slider when receiving either 14 # Ir->VolUP or Ir->VolDN. The slider automatically disappears 15 # after a period of inactivity. 16 17 volumectl: fn(ctxt: ref Draw->Context, ch: chan of int, device: string); 18}; 19