1 '\" te
   2 .\"  Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
   3 .\" Copyright 2020 Peter Tribble.
   4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
   5 .\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
   6 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7 .TH AUDIOTEST 1 "Feb 8, 2020"
   8 .SH NAME
   9 audiotest \- test audio device
  10 .SH SYNOPSIS
  11 .nf
  12 \fBaudiotest\fR [\fB-2457\fR] [\fB-l\fR] [\fB-r\fR \fIrate\fR] [\fIdev\fR] ...
  13 .fi
  14 
  15 .SH DESCRIPTION
  16 The \fBaudiotest\fR utility runs a test for the named audio device (or all
  17 audio devices found on the system if none is given). The test includes playing
  18 an audio sample over each channel and measuring the rate of playback for clock
  19 drift.
  20 .SH OPTIONS
  21 The following options are supported:
  22 .sp
  23 .ne 2
  24 .na
  25 \fB-l\fR
  26 .ad
  27 .RS 6n
  28 Loop mode. The test is run in an infinite loop.
  29 .RE
  30 
  31 .sp
  32 .ne 2
  33 .na
  34 \fB-r\fR \fIrate\fR
  35 .ad
  36 .RS 6n
  37 Sample rate. By default 48000Hz is used.
  38 .RE
  39 
  40 .sp
  41 .ne 2
  42 .na
  43 \fB-2\fR
  44 .ad
  45 .RS 6n
  46 Stereo (2-channel) mode. This is the default mode. Playback assumes 2 channels
  47 are present.
  48 .RE
  49 
  50 .sp
  51 .ne 2
  52 .na
  53 \fB-4\fR
  54 .ad
  55 .RS 6n
  56 Quadraphonic mode (4-channel surround). The test assumes that four surround
  57 channels are present.
  58 .RE
  59 
  60 .sp
  61 .ne 2
  62 .na
  63 \fB-5\fR
  64 .ad
  65 .RS 6n
  66 Surround sound mode (5.1). The test checks the left, right, surround left,
  67 surround right, and center channels. The low frequency effects channel is not
  68 tested.
  69 .RE
  70 
  71 .sp
  72 .ne 2
  73 .na
  74 \fB-7\fR
  75 .ad
  76 .RS 6n
  77 Surround sound mode (7.1). The test checks the left, right, surround left,
  78 surround right, back surround left, back surround right, and center channels.
  79 The low frequency effects channel is not tested.
  80 .RE
  81 
  82 .sp
  83 .LP
  84 If multiple modes are specified, the last one specified is used.
  85 
  86 .SH OPERANDS
  87 .ne 2
  88 .na
  89 \fIdev\fR
  90 .ad
  91 .RS 7n
  92 The path to the device to test, for example, \fB/dev/dsp0\fR.
  93 .RE
  94 
  95 .SH SEE ALSO
  96 \fBaudioconvert\fR(1), \fBaudiorecord\fR(1),
  97 \fBaudio\fR(7I)
  98 .SH BUGS
  99 \fBaudiotest\fR has no way to detect the number of actual audio channels
 100 supported by the physical device.
 101 .sp
 102 .LP
 103 \fBaudiotest\fR does not test the low-frequency effects (LFE) channel.
 104 .sp
 105 .LP
 106 There is no test for audio capture, volume controls, or other advanced device
 107 features.