Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
Copyright 2020 Peter Tribble.
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.
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
fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
audiotest [-2457] [-l] [-r rate] [dev] ...
Loop mode. The test is run in an infinite loop.
Sample rate. By default 48000Hz is used.
Stereo (2-channel) mode. This is the default mode. Playback assumes 2 channels are present.
Quadraphonic mode (4-channel surround). The test assumes that four surround channels are present.
Surround sound mode (5.1). The test checks the left, right, surround left, surround right, and center channels. The low frequency effects channel is not tested.
Surround sound mode (7.1). The test checks the left, right, surround left, surround right, back surround left, back surround right, and center channels. The low frequency effects channel is not tested.
If multiple modes are specified, the last one specified is used.
audiotest does not test the low-frequency effects (LFE) channel.
There is no test for audio capture, volume controls, or other advanced device features.