1 '\" te
   2 .\"  Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
   3 .\" 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.
   4 .\"  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
   5 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH AUDIOTEST 1 "May 13, 2017"
   7 .SH NAME
   8 audiotest \- test audio device
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fBaudiotest\fR [\fB-24571\fR] [\fIdev\fR] ...
  13 .fi
  14 
  15 .SH DESCRIPTION
  16 .LP
  17 The \fBaudiotest\fR utility runs a test for the named audio device (or all
  18 audio devices found on the system if none is given). The test includes playing
  19 an audio sample over each channel and measuring the rate of playback for clock
  20 drift.
  21 .SH OPTIONS
  22 .LP
  23 The following options are supported:
  24 .sp
  25 .ne 2
  26 .na
  27 \fB\fB-1\fR\fR
  28 .ad
  29 .RS 6n
  30 Loop mode. The test is run in an infinite loop.
  31 .RE
  32 
  33 .sp
  34 .ne 2
  35 .na
  36 \fB\fB-2\fR\fR
  37 .ad
  38 .RS 6n
  39 Stereo (2-channel) mode. This is the default mode. Playback assumes 2 channels
  40 are present.
  41 .RE
  42 
  43 .sp
  44 .ne 2
  45 .na
  46 \fB\fB-4\fR\fR
  47 .ad
  48 .RS 6n
  49 Quadraphonic mode (4-channel surround). The test assumes that four surround
  50 channels are present.
  51 .RE
  52 
  53 .sp
  54 .ne 2
  55 .na
  56 \fB\fB-5\fR\fR
  57 .ad
  58 .RS 6n
  59 Surround sound mode (5.1). The test checks the left, right, surround left,
  60 surround right, and center channels. The low frequency effects channel is not
  61 tested.
  62 .RE
  63 
  64 .sp
  65 .ne 2
  66 .na
  67 \fB\fB-7\fR\fR
  68 .ad
  69 .RS 6n
  70 Surround sound mode (7.1). The test checks the left, right, surround left,
  71 surround right, back surround left, back surround right, and center channels.
  72 The low frequency effects channel is not tested.
  73 .RE
  74 
  75 .SH OPERANDS
  76 .ne 2
  77 .na
  78 \fB\fIdev\fR\fR
  79 .ad
  80 .RS 7n
  81 The path the device to test, for example, \fB/dev/dsp0\fR.
  82 .RE
  83 
  84 .SH ATTRIBUTES
  85 .LP
  86 See \fBattributes\fR(5) for descriptions of the following attributes:
  87 .sp
  88 
  89 .sp
  90 .TS
  91 box;
  92 c | c
  93 l | l .
  94 ATTRIBUTE TYPE  ATTRIBUTE VALUE
  95 _
  96 Architecture    SPARC, x86
  97 _
  98 Interface Stability     Committed
  99 .TE
 100 
 101 .SH SEE ALSO
 102 .LP
 103 \fBaudioconvert\fR(1), \fBaudiorecord\fR(1),
 104 \fBattributes\fR(5), \fBaudio\fR(7I)
 105 .SH BUGS
 106 .LP
 107 \fBaudiotest\fR has no way to detect the number of actual audio channels
 108 supported by the physical device.
 109 .sp
 110 .LP
 111 \fBaudiotest\fR does not test the low-frequency effects (LFE) channel.
 112 .sp
 113 .LP
 114 There is no test for audio capture, volume controls, or other advanced device
 115 features.