The DejaVU Framework -- hush 3.1
[.] Papers Tutorials Examples Manuals Interfaces Sources Packages Resources ?

Manual: Hymne l 1995


[.] [man] man1 man2 man3 man4 man5 man6 man7 man8 man9 manl mann ?

NAME

audio - Tcl command interface to /dev/audioctl

SYNOPSIS


audio


slide: SYNOPSIS

OPTIONS


Legal options are:


slide: OPTIONS

EXAMPLES


You will need a Tcl interpreter (like tclsh(1), wish(1) or hush(1)) extendend with the audio command. Of course, hymne(1) has this command.

          shell-prompt> hymne
  
          # How to define a volume scale in two Tcl lines:
          % proc set_vol v {audio -volume [expr \$v/100.0]}
          % pack [scale .vol -command set_vol -orient horizontal -label Volume]
  
          # Some random playing ...
          % audio -volume                 # Get current volume
          0.403922                
          % audio -volume 0.2         # Set current volume to 20 procent
          % audio -volume                 # Note the rounding error ...
          0.196078
          % set s [audio -samples] # How many samples have been played?
          692393
          % puts \$s
          692393 
          % # etc
  .if
  
  
slide: EXAMPLES

<h4>NOTES</h4>


If you want to exented your personal hush interpreter with the audio command, you might want to read audio(4)


slide: NOTES

<h4>LIBRARY</h4>


hymne -- file <hymne/audio.h>


slide: LIBRARY

<h4>KEYWORDS</h4> Audio, audio, hush, hymne, Tcl

<h4>SEE ALSO</h4> Audio(4), audio(4), audio(7), hush(1), hymne(1), Tcl(1) <hr> [.] Papers Tutorials Examples Manuals Interfaces Sources Packages Resources ? <hr> <table cellpadding=10> <tr> <td> <address> Hush Online Technology </address> hush@cs.vu.nl <br>09/24/99 </td><td> <img src=../../../../@share/base/eye.gif width=30 height=30> </td> <td></td><td></td><td></td><td></td><td></td><td></td><td></td> <td> <img src=../../../../@share/images/griff.gif> </td> </tr> </table>