PLAY/RECORD(1)

NAME
play - plays .WAV-Files record - records .WAV-Files

SYNOPSIS
play [-S] [-s speed] [-t limit] [-b bits] [-q] [-h] [filename] record [-S] [-s speed] [-t limit] [-b bits] [-q] [-h] [filename]

DESCRIPTION
Play plays sound files in the .WAV-format of MS-Windows 3.1 through your sound card. Without any switches all needed parameters like speed (sample_frequency), mode (stereo / mono), bits per sample (8, 12, 16) will be taken from the header of the given file. You can overwrite these parameters by using the switches. Record samples data coming from your external devices like microphones, recorders, CD-players, radios; whatever connected to your sound card. The data will be saved in the .WAV-format. If you don't use any switches, default values will be taken. Defaults for recording:
    speed - 22050 Hz time - 10 seconds bits - 8 Bits mode - mono
If no files are given, the input of the player will be taken from stdin, the output of the recorder will be written to stdout. All messages (which can be suppressed with the -q switch) will be written to stderr.

OPTIONS
-S - sets stereo-mode -s speed - sets the sample frequency in Hz -t limit - sets the time limit in seconds -b bits - sets the sample size to 8, 12 or 16 bits. The Soundblaster card supports only 8 bit! -q - quiet mode, no terminal output -h - gives a help text

FILES
/usr/local/bin/play - player /usr/local/bin/record - record

DIAGNOSTICS
If any error occurs, a message will be printed out and the program will be exited (with one exception - see below) returning an error code of -1. The player checks the header of the files. The error-message "wrong speed/freq." is only a warning and doesn't influence the playing.

BUGS
I don't know any :-)

EXAMPLES
cat sample.wav | play plays sample.wav play sample.wav plays this sample too record -S -t 10 -s 10000 test.wav records data in stereo with a speed of 10000 Hz for 10 seconds

SEE ALSO
xplay(1)

AUTHOR
Andre Fuechsel (C) FF-Soft '93 e-mail: af1@irz.inf.tu-dresden.de