34 lines · 878 B · Text
RawDownload
= volume: volume control for an infrared interface     include "volume.m";    vctl := load Volumectl Volumectl->PATH;     volumectl: fn(ctxt: ref Draw->Context, ch: chan of int,                   device: string); Volumectl  should  be  spawned as a separate process from anyprocess that desires volume control via  an  infrared  inter‐face.  Ctxt provides volumectl with access to the display, onwhich it displays a slider widget.  The slider  automaticallydisappears  after  several  seconds of inactivity.  Volumectlreceives input from the infrared controller  on  channel  ch.The values recognized are: VolUP  increase volume VolDN  decrease volume Enter  exit Device  is  a  string  used  as  a  prefix to commands to thedevice; for example "audio out" for audio(3). == files/dev/volume == source/appl/lib/volume.b == see ALSOir(2), prefab-intro(2)