Skip to Content
Linux in a Nutshell, 6th Edition
book

Linux in a Nutshell, 6th Edition

by Ellen Siever, Stephen Figgins, Robert Love, Arnold Robbins
September 2009
Beginner
942 pages
85h 34m
English
O'Reilly Media, Inc.
Content preview from Linux in a Nutshell, 6th Edition

Name

aplay

Synopsis

aplay [options] [file]

Play sound files using the ALSA sound system. The related arecord records sound files.

Options

-c, --channels=n

Use n channels: 1 for mono, 2 for stereo.

-d, --duration=n

Set an interrupt for n seconds after playback begins.

-D, --device=devicename

Select a PCM device by name.

-f, --format=format

Specify the sample format. The sample formats available will depend on hardware. For CD and DAT output, use the cd and dat shortcuts, which set the sample rate, format, and channel numbers all at once.

-h, --help

Print help message, then exit.

-l, --list-devices

List available sound cards and digital audio devices.

-L, --list-pcms

List all PCM (pulse-coded modulation, or digital audio) devices that have been defined. PCMs may be defined in the .asoundrc file.

-q, --quiet

Run quietly. Do not display messages.

-r, --rate=n

Set the sample rate in Hertz. The default is 8000 Hertz.

-s, --sleep-min=n

Set the minimum number of ticks to sleep. The default is not to sleep.

-t, --file-type=type

Name the file type used. Files may be voc, wav, raw, or au.

--version

Print version and quit.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Unix in a Nutshell, 4th Edition

Unix in a Nutshell, 4th Edition

Arnold Robbins
Linux Under the Hood

Linux Under the Hood

Sander van Vugt
Linux Kernel in a Nutshell

Linux Kernel in a Nutshell

Greg Kroah-Hartman

Publisher Resources

ISBN: 9780596806088Errata Page