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

Annotation of src/usr.bin/mixerctl/mixerctl.1, Revision 1.9

1.9     ! aaron       1: .\" $OpenBSD: mixerctl.1,v 1.8 1998/09/26 19:55:07 aaron Exp $
1.6       provos      2: .\" $NetBSD: mixerctl.1,v 1.8 1998/05/09 12:41:16 augustss Exp $
1.5       millert     3: .\"
1.1       provos      4: .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
                      5: .\" All rights reserved.
                      6: .\"
                      7: .\" Author: Lennart Augustsson
                      8: .\"
                      9: .\" Redistribution and use in source and binary forms, with or without
                     10: .\" modification, are permitted provided that the following conditions
                     11: .\" are met:
                     12: .\" 1. Redistributions of source code must retain the above copyright
                     13: .\"    notice, this list of conditions and the following disclaimer.
                     14: .\" 2. Redistributions in binary form must reproduce the above copyright
                     15: .\"    notice, this list of conditions and the following disclaimer in the
                     16: .\"    documentation and/or other materials provided with the distribution.
                     17: .\" 3. All advertising materials mentioning features or use of this software
                     18: .\"    must display the following acknowledgement:
                     19: .\"        This product includes software developed by the NetBSD
                     20: .\"        Foundation, Inc. and its contributors.
                     21: .\" 4. Neither the name of The NetBSD Foundation nor the names of its
                     22: .\"    contributors may be used to endorse or promote products derived
                     23: .\"    from this software without specific prior written permission.
                     24: .\"
                     25: .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
                     26: .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
                     27: .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1.6       provos     28: .\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
1.1       provos     29: .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
                     30: .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
                     31: .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
                     32: .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
                     33: .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
                     34: .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
                     35: .\" POSSIBILITY OF SUCH DAMAGE.
                     36: .\"
                     37: .Dd May 4, 1997
                     38: .Dt MIXERCTL 1
                     39: .Os
                     40: .Sh NAME
                     41: .Nm mixerctl
                     42: .Nd control audio mixing
                     43: .Sh SYNOPSIS
1.9     ! aaron      44: .Nm mixerctl
1.1       provos     45: .Op Fl f Ar file
                     46: .Op Fl n
                     47: .Op Fl v
                     48: .Fl a
1.9     ! aaron      49: .Nm mixerctl
1.1       provos     50: .Op Fl f Ar file
                     51: .Op Fl n
                     52: .Op Fl v
1.8       aaron      53: .Ar name Op Ar ...
1.9     ! aaron      54: .Nm mixerctl
1.1       provos     55: .Op Fl f Ar file
                     56: .Op Fl n
                     57: .Fl w
1.8       aaron      58: .Ar name=value Op Ar ...
1.1       provos     59: .Sh DESCRIPTION
1.6       provos     60: The
1.1       provos     61: .Nm
                     62: command displays or sets various audio system mixing variables.
                     63: If a list of variables is present on the command line, then
                     64: .Nm
                     65: prints the current value of those variables for the specified device.
1.6       provos     66: If the
1.1       provos     67: .Fl a
                     68: flag is specified, all variables for the device are printed.
                     69: If the
                     70: .Fl w
                     71: flag is specified
                     72: .Nm
                     73: attempts to set the specified variables to the given values.
1.5       millert    74: .Pp
                     75: Values may be specified in either absolute or relative forms.
                     76: The relative form is indicated by a prefix of
                     77: .Dq +
                     78: or
                     79: .Dq -
                     80: to denote an increase or decrease respectively.
1.1       provos     81: .Pp
                     82: The
                     83: .Fl f
                     84: flag can be used to give an alternative mixer device, the default is
1.6       provos     85: .Pa /dev/mixer .
1.1       provos     86: .Pp
                     87: The
                     88: .Fl n
                     89: flag suppresses printing of the variable name.
                     90: .Pp
                     91: The
                     92: .Fl v
                     93: flag shows the possible values of enumeration and set valued
                     94: variables.  Enumerated values are shown in [] and set values
                     95: are shown in {}.
1.6       provos     96: .Pp
                     97: The exact set of controls that can be manipulated depends on
                     98: the mixer.  The general format (in both getting and setting a value)
                     99: is
                    100: .br
                    101: .Va "class.name" = value
                    102: .br
                    103: The
                    104: .Va class
                    105: can have values like
                    106: .Li inputs
                    107: or
                    108: .Li outputs
                    109: indicating that the control affects the input resp. output to the
                    110: mixer.  The
                    111: .Va name
                    112: indicates what part of the mixer the control affects.
1.8       aaron     113: Continuous mixer values, e.g., volume, have numeric values
1.6       provos    114: in the range 0-255.  If value can be set for each channel independently
                    115: the values are printed separated by commas.  Discrete mixer values, e.g.,
                    116: the recording source, have symbolic names.  Depending on the mixer it
                    117: may either be an enumeration or a set.
                    118: .Sh EXAMPLES
1.7       deraadt   119: The command
1.6       provos    120: .Dl "mixerctl -a -v"
                    121: can produce
                    122: .Bd -literal
                    123: inputs.mic=0,0 volume
                    124: inputs.mic.mute=off  [ off on ]
                    125: inputs.cd=220,220 volume
                    126: inputs.cd.mute=off  [ off on ]
                    127: inputs.dac=220,220 volume
                    128: inputs.dac.mute=off  [ off on ]
                    129: record.record=220,220 volume
                    130: record.record.source=mic  [ mic cd dac ]
                    131: monitor.monitor=0 volume
                    132: .Ed
1.1       provos    133: .Sh FILES
                    134: .Bl -tag -width /dev/mixer
                    135: .It Pa /dev/mixer
                    136: mixer audio device
                    137: .El
1.4       provos    138: .Sh ENVIRONMENT
                    139: .Bl -tag -width MIXERDEVICE
1.8       aaron     140: .It Ev MIXERDEVICE
1.4       provos    141: the mixer device to use.
1.1       provos    142: .Sh SEE ALSO
                    143: .Xr audioctl 1 ,
                    144: .Xr audio 4 ,
                    145: .Xr sysctl 8
                    146: .Sh HISTORY
                    147: The
                    148: .Nm
                    149: command first appeared in
                    150: .Nx 1.3 .
                    151: