diff options
| author | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
|---|---|---|
| committer | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
| commit | b786f20bbab5a59046aa78a2c6c2a11536497202 (patch) | |
| tree | 0851ecdec889eb9b7ba3751cc04d4f0b474e4a9e /module/volume.m | |
inferno-os tree was separated from the inferno-os-android (separated from the Android driver)
Diffstat (limited to 'module/volume.m')
| -rw-r--r-- | module/volume.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/module/volume.m b/module/volume.m new file mode 100644 index 0000000..7ac075c --- /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); +}; |
