The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

pcmplay - utility to play raw PCM data

SYNOPSIS

  pcmplay [options] [file1.pcm file2.pcm...]

DESCRIPTION

pcmplay is a simple filter for sending raw PCM data to the cross-platform ao audio library. It will read from files specified on the command line, or standard input if no files are specified.

To obtain PCM data, check if your audio programs have an option to redirect output to a file. With mpg123 this is the -s option. Included with the Ogg Vorbis library is a sample decoder that generates PCM output. Many mixers and audio programs come with PCM samples.

OPTIONS

-h, --help

Print a brief usage message.

-v, --version

Display version info.

-d, --device DEVICE

Add a device to play to. The device may be any of oss, esd, alsa, irix or solaris as the output device, or wav to write to a wav file. You may specify additional options to a device by appending a colon and comma-separated list of key=value pairs. Examples:

  pcmplay file.pcm -d wav:file=output.wav
  pcmplay file.pcm -d esd -d alsa:card=0,dev=1
-b, --bits BITS

Set the number of bits per sample (8 or 16, default 16).

-r, --rate RATE

Set the number of samples per second (default 44100).

-c, --channels CHANNELS

Set the number of channels (1 = mono, 2 = stereo).

-s, --buffer SIZE

Set buffer size (default 4096).

AUTHOR

Alex Shinn, foof@debian.org

SEE ALSO

Ao(3pm), perl(1).