Blame speaker-test/speaker-test.1

Packit 229ac0
.\" -*- nroff -*-
Packit 229ac0
.\" macros
Packit 229ac0
.de EX \" Begin Example
Packit 229ac0
.  IP
Packit 229ac0
.  ft CW
Packit 229ac0
.  nf
Packit 229ac0
.  ne \\$1
Packit 229ac0
..
Packit 229ac0
.de EE \" End Example
Packit 229ac0
.  ft P
Packit 229ac0
.  fi
Packit 229ac0
.  PP
Packit 229ac0
..
Packit 229ac0
.TH SPEAKER\-TEST 1 "April 2nd, 2011" speaker\-test
Packit 229ac0
.SH NAME
Packit 229ac0
speaker\-test \- command\-line speaker test tone generator for ALSA
Packit 229ac0
.SH SYNOPSIS
Packit 229ac0
.B speaker\-test [\-options]
Packit 229ac0
Packit 229ac0
.SH DESCRIPTION
Packit 229ac0
\fBspeaker\-test\fP generates a tone that can be used to test the speakers of a computer.
Packit 229ac0
Packit 229ac0
\fBspeaker\-test\fP by default will test the \fIdefault\fP device. If you
Packit 229ac0
want to test another sound device you will have first to get a list of
Packit 229ac0
all of the sound cards in your system and the devices associated with
Packit 229ac0
those cards. Notice that there might be for example, one device for
Packit 229ac0
analog sound, one for digital sound and one for HDMI sound.
Packit 229ac0
To get the list of available cards and devices you can run \fBaplay \-L\fR.
Packit 229ac0
Packit 229ac0
.P \fBaplay\fR's output will be similar to this one:
Packit 229ac0
Packit 229ac0
.nf
Packit 229ac0
$ aplay \-L
Packit 229ac0
null
Packit 229ac0
    Discard all samples (playback) or generate zero samples (capture)
Packit 229ac0
default:CARD=ICH5
Packit 229ac0
    Intel ICH5, Intel ICH5
Packit 229ac0
    Default Audio Device
Packit 229ac0
front:CARD=ICH5,DEV=0
Packit 229ac0
    Intel ICH5, Intel ICH5
Packit 229ac0
    Front speakers
Packit 229ac0
surround40:CARD=ICH5,DEV=0
Packit 229ac0
    Intel ICH5, Intel ICH5
Packit 229ac0
    4.0 Surround output to Front and Rear speakers
Packit 229ac0
(...)
Packit 229ac0
.fi
Packit 229ac0
Packit 229ac0
.P Each of the devices is listed in the beginning of the definition so,
Packit 229ac0
in the above example, there are four devices listed: null, default, front
Packit 229ac0
and surround40. So, if you want to test the last device you can
Packit 229ac0
run \fBspeaker\-test \-Dsurround40:ICH5 \-c 6\fR. The \fB\-c\fR option will
Packit 229ac0
indicate that the six audio channels in the device have to be tested.
Packit 229ac0
Packit 229ac0
Packit 229ac0
Packit 229ac0
Packit 229ac0
Packit 229ac0
.SH OPTIONS
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-c\fP | \fB\-\-channels\fP \fINUM\fP
Packit 229ac0
\fINUM\fP channels in stream
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-D\fP | \fB\-\-device\fP \fINAME\fP
Packit 229ac0
PCM device name \fINAME\fP
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-f\fP | \fB\-\-frequency\fP \fIFREQ\fP
Packit 229ac0
sine wave of \fIFREQ\fP Hz
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-\-help\fP
Packit 229ac0
Print usage help
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-b\fP | \fB\-\-buffer\fP \fITIME\fP
Packit 229ac0
Use buffer size of \fITIME\fP microseconds.
Packit 229ac0
When 0 is given, use the maximal buffer size.
Packit 229ac0
The default value is 0.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-p\fP | \fB\-\-period\fP \fITIME\fP
Packit 229ac0
Use period size of \fITIME\fP microseconds.
Packit 229ac0
When 0 is given, the periods given by \fB\-P\fP option is used.
Packit 229ac0
The default value is 0.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-P\fP | \fB\-\-nperiods\fP \fIPERIODS\fP
Packit 229ac0
Use number of periods.  The default value is 4.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-r\fP | \fB\-\-rate\fP \fIRATE\fP
Packit 229ac0
stream of \fIRATE\fP Hz
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-t\fP | \fB\-\-test\fP \fBpink\fP|\fBsine\fP|\fBwav\fP
Packit 229ac0
\fB\-t pink\fP means use pink noise (default).
Packit 229ac0
Packit 229ac0
Pink noise is perceptually uniform noise -- that is, it sounds like every frequency at once.  If you can hear any tone it may indicate resonances in your speaker system or room.
Packit 229ac0
Packit 229ac0
\fB\-t sine\fP means to use sine wave.
Packit 229ac0
Packit 229ac0
\fB\-t wav\fP means to play WAV files, either pre-defined files or given via \fB\-w\fP option.
Packit 229ac0
Packit 229ac0
You can pass the number from 1 to 3 as a backward compatibility.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-l\fP | \fB\-\-nloops\fP \fICOUNT\fP
Packit 229ac0
Packit 229ac0
Specifies the number of loops.  Zero means to run infinitely.
Packit 229ac0
Packit 229ac0
When \fB\-s\fP option below with a valid channel is given, \fBspeaker\-test\fP will perform
Packit 229ac0
always a single-shot without looping.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-s\fP | \fB\-\-speaker\fP \fICHANNEL\fP
Packit 229ac0
Do a single-shot speaker test for the given channel.  The channel number starts from 1.
Packit 229ac0
The channel number corresponds to left, right, rear-left, rear-right, center, LFE,
Packit 229ac0
side-left, side-right, and so on.
Packit 229ac0
Packit 229ac0
For example, when 1 is passed, it tests the left channel only once rather than both channels
Packit 229ac0
with looping.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-w\fP | \fB\-\-wavfile\fP \fIFILE\fP
Packit 229ac0
Use the given WAV file for the playback instead of pre-defined WAV files.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-W\fP | \fB\-\-wavdir\fP \fIDIRECTORY\fP
Packit 229ac0
Specify the directory containing WAV files for playback.
Packit 229ac0
The default path is \fI/usr/share/sounds/alsa\fP.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-m\fP | \fB\-\-chmap\fP \fIMAP\fP
Packit 229ac0
Pass the channel map to override.
Packit 229ac0
If the playback in a specific channel order or channel positions is
Packit 229ac0
required, pass the channel position strings to this option.
Packit 229ac0
Packit 229ac0
.TP
Packit 229ac0
\fB\-X\fP | \fB\-\-force-frequency\fP
Packit 229ac0
Allow supplied \fIFREQ\fP to be outside the default range of 30-8000Hz. A minimum of 1Hz is still enforced.
Packit 229ac0
Packit 229ac0
.SH USAGE EXAMPLES
Packit 229ac0
Packit 229ac0
Produce stereo sound from one stereo jack:
Packit 229ac0
.EX
Packit 229ac0
  speaker\-test \-Dplug:front \-c2
Packit 229ac0
.EE
Packit 229ac0
Packit 229ac0
Produce 4 speaker sound from two stereo jacks:
Packit 229ac0
.EX
Packit 229ac0
  speaker\-test \-Dplug:surround40 \-c4
Packit 229ac0
.EE
Packit 229ac0
Packit 229ac0
Produce 5.1 speaker sound from three stereo jacks:
Packit 229ac0
.EX
Packit 229ac0
  speaker\-test \-Dplug:surround51 \-c6
Packit 229ac0
.EE
Packit 229ac0
Packit 229ac0
To send a nice low 75Hz tone to the Woofer and then exit without touching any other speakers:
Packit 229ac0
.EX
Packit 229ac0
  speaker\-test \-Dplug:surround51 \-c6 \-s1 \-f75
Packit 229ac0
.EE
Packit 229ac0
Packit 229ac0
To do a 2\-speaker test using the spdif (coax or optical) output:
Packit 229ac0
.EX
Packit 229ac0
  speaker\-test \-Dplug:spdif \-c2
Packit 229ac0
.EE
Packit 229ac0
Packit 229ac0
Play in the order of front\-right and front-left from the front PCM
Packit 229ac0
.EX
Packit 229ac0
  speaker\-test \-Dplug:front \-c2 \-mFR,FL
Packit 229ac0
.EE
Packit 229ac0
Packit 229ac0
.SH SEE ALSO
Packit 229ac0
.BR aplay(1)
Packit 229ac0
Packit 229ac0
.SH AUTHOR
Packit 229ac0
The speaker\-test program was written by James Courtier-Dutton.
Packit 229ac0
Pink noise support was added by Nathan Hurst.
Packit 229ac0
Further extensions by Takashi Iwai.