1 .\" $NetBSD: audioctl.1,v 1.17 2003/02/25 10:35:36 wiz Exp $
3 .\" Copyright (c) 1997, 1999 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" Author: Lennart Augustsson and Charles M. Hannum
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
17 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 .\" POSSIBILITY OF SUCH DAMAGE.
34 .Nd control audio device
52 command displays or sets various audio system driver variables.
53 If a list of variables is present on the command line, then
55 prints the current value of those variables for the specified device.
58 flag is specified, all variables for the device are printed.
63 attempts to set the specified variables to the given values.
67 flag can be used to give an alternative audio control device, the default is
72 flag suppresses printing of the variable name.
74 .Bl -tag -width AUDIOCTLDEVICE
76 the audio control device to use.
79 .Bl -tag -width /dev/audioctl0 -compact
81 audio I/O device (resets on open)
85 audio I/O device (does not reset on open)
88 To set the playing sampling rate to 11025, you can use
89 .Dl audioctl -w play.sample_rate=11025
90 To set all of the play parameters for CD-quality audio, you can use
91 .Dl audioctl -w play=44100,2,16,slinear_le
92 Note that many of the variables that can be inspected and changed with
97 This can be circumvented by using
109 command first appeared in
114 flag is still supported.
115 This support will be removed eventually.