[BACK]Return to audioctl.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / audioctl

Annotation of src/usr.bin/audioctl/audioctl.1, Revision 1.28

1.27      ratchov     1: .\" $OpenBSD: audioctl.1,v 1.26 2008/06/26 05:42:20 ray Exp $
1.4       provos      2: .\" $NetBSD: audioctl.1,v 1.7 1998/04/27 16:55:23 augustss Exp $
1.1       provos      3: .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
                      4: .\" All rights reserved.
                      5: .\"
                      6: .\" Author: Lennart Augustsson
                      7: .\"
                      8: .\" Redistribution and use in source and binary forms, with or without
                      9: .\" modification, are permitted provided that the following conditions
                     10: .\" are met:
                     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.
                     16: .\"
                     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
1.7       aaron      20: .\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
1.1       provos     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.
                     28: .\"
1.27      ratchov    29: .Dd $Mdocdate: June 26 2008 $
1.1       provos     30: .Dt AUDIOCTL 1
                     31: .Os
                     32: .Sh NAME
                     33: .Nm audioctl
                     34: .Nd control audio device
                     35: .Sh SYNOPSIS
1.6       aaron      36: .Nm audioctl
1.23      sobrado    37: .Op Fl an
1.14      pvalchev   38: .Op Fl f Ar file
1.6       aaron      39: .Nm audioctl
1.22      sobrado    40: .Op Fl n
1.14      pvalchev   41: .Op Fl f Ar file
1.21      sobrado    42: .Ar name ...
1.6       aaron      43: .Nm audioctl
1.22      sobrado    44: .Op Fl n
1.14      pvalchev   45: .Op Fl f Ar file
1.21      sobrado    46: .Ar name Ns = Ns Ar value ...
1.1       provos     47: .Sh DESCRIPTION
1.7       aaron      48: The
1.1       provos     49: .Nm
                     50: command displays or sets various audio system driver variables.
1.5       aaron      51: If a list of variables is present on the command line,
1.1       provos     52: .Nm
                     53: prints the current value of those variables for the specified device.
1.8       aaron      54: By default,
1.1       provos     55: .Nm
1.8       aaron      56: operates on the
                     57: .Pa /dev/audioctl
                     58: device.
1.1       provos     59: .Pp
1.8       aaron      60: The options are as follows:
1.19      jmc        61: .Bl -tag -width "name=valueXX"
1.8       aaron      62: .It Fl a
                     63: Print all device variables and their current values.
1.23      sobrado    64: This is the default, if no parameters are given to
                     65: .Nm .
1.19      jmc        66: .It Fl f Ar file
                     67: Specify an alternative audio control device.
                     68: .It Fl n
                     69: Suppress printing of the variable name.
                     70: .It Ar name Ns = Ns Ar value
1.8       aaron      71: Attempt to set the specified variable
                     72: .Ar name
                     73: to
                     74: .Ar value .
                     75: .El
1.28    ! ratchov    76: .Pp
        !            77: Variables may only be changed if the device is not opened for
        !            78: playback or recording by another process.
1.15      jmc        79: .Sh ENVIRONMENT
                     80: .Bl -tag -width AUDIOCTLDEVICE
                     81: .It Ev AUDIOCTLDEVICE
                     82: Audio control device to use.
                     83: .El
                     84: .Sh FILES
                     85: .Bl -tag -width /dev/audioctl
                     86: .It Pa /dev/audioctl
                     87: default audio control device
                     88: .El
1.1       provos     89: .Sh EXAMPLES
1.19      jmc        90: To set the playing sampling rate to 11025 you can enter:
1.8       aaron      91: .Pp
1.27      ratchov    92: .Dl $ audioctl play.rate=11025
1.1       provos     93: .Sh SEE ALSO
1.19      jmc        94: .Xr aucat 1 ,
                     95: .Xr cdio 1 ,
1.1       provos     96: .Xr mixerctl 1 ,
                     97: .Xr audio 4 ,
                     98: .Xr sysctl 8
                     99: .Sh HISTORY
                    100: The
                    101: .Nm
                    102: command first appeared in
                    103: .Nx 1.3 .