


PLAY(6)                  GAMES AND DEMOS                  PLAY(6)



NAME
     play - play audio files

SYNOPSIS
     play [ -i ] [ -V ] [ -d _d_e_v ] [ -v _v_o_l ] [ _f_i_l_e_n_a_m_e...  ]

AVAILABILITY
     This command is  only  available  with  the  _D_e_m_o_s  software
     installation  option.   Refer  to  _I_n_s_t_a_l_l_i_n_g  _S_u_n_O_S _4._1 for
     information on how to install optional software.

DESCRIPTION
     play copies the named  audio  files  to  the  audio  device.
     Audio  files  named  on  the command line are played sequen-
     tially.  If no filenames are  present,  the  standard  input
     stream  is  played.  The special filename `-' may be used to
     read the standard input stream instead of a file.

     The input files (including the standard input) must  contain
     a valid audio file header.  The encoding information in this
     header is matched against the capabilities of the audio dev-
     ice and, if the data formats are incompatible, an error mes-
     sage is printed and the file is skipped.

     Minor deviations in sampling frequency (those less than  1%)
     are  ordinarily  ignored.   This  allows, for instance, data
     sampled at 8012 Hz to be played on an audio device that only
     supports 8000 Hz.  If the -V option is specified, such devi-
     ations are flagged with warning messages.

OPTIONS
     -i        Print an error message and exit immediately if the
               audio device is unavailable (that is, another pro-
               cess currently has write access).  play will ordi-
               narily wait until it can obtain access to the dev-
               ice.

     -V        Verbose.  Print messages  to  the  standard  error
               while  waiting  for  access to the audio device or
               when sample rate deviations are detected.

     -d _d_e_v    Specify an alternate audio device to which  output
               should  be  directed.   If  the  -d  option is not
               specified, /dev/audio is the default audio device.

     -v _v_o_l    Set  the  output  volume  to  _v_o_l  before  playing
               begins.   _v_o_l  is  an  integer value between 0 and
               100, inclusive.  If this argument  is  not  speci-
               fied,  the output volume remains at the level most
               recently set by any process.

     -?        Help.  Print a command line usage message.



Sun Release 4.1   Last change: 10 January 1990                  1






PLAY(6)                  GAMES AND DEMOS                  PLAY(6)



SEE ALSO
     record(6)

WARNINGS
     This program is furnished on an _a_s _i_s basis as a  demonstra-
     tion of audio applications programming.

















































Sun Release 4.1   Last change: 10 January 1990                  2



