version 1.7, 1999/06/05 01:21:18 |
version 1.8, 2000/03/04 20:41:44 |
|
|
If a list of variables is present on the command line, |
If a list of variables is present on the command line, |
.Nm |
.Nm |
prints the current value of those variables for the specified device. |
prints the current value of those variables for the specified device. |
If the |
By default, |
.Fl a |
|
flag is specified, all variables for the device are printed. |
|
If the |
|
.Fl w |
|
flag is specified, |
|
.Nm |
.Nm |
attempts to set the specified variables to the given values. |
operates on the |
|
.Pa /dev/audioctl |
|
device. |
.Pp |
.Pp |
The |
The options are as follows: |
.Fl f |
.Bl -tag -width "-w name=value" |
flag can be used to give an alternative audio control device. The default is |
.It Fl a |
.Pa /dev/audioctl . |
Print all device variables and their current values. |
.Pp |
.It Fl w Ar name=value |
The |
Attempt to set the specified variable |
.Fl n |
.Ar name |
flag suppresses printing of the variable name. |
to |
|
.Ar value . |
|
.It Fl f Ar file |
|
Specify an alternative audio control device. |
|
.It Fl n |
|
Suppress printing of the variable name. |
|
.El |
.Sh EXAMPLES |
.Sh EXAMPLES |
To set the playing sampling rate to 11025 you can enter |
To set the playing sampling rate to 11025 you can enter |
|
.Pp |
.Dl audioctl -w play.sample_rate=11025 |
.Dl audioctl -w play.sample_rate=11025 |
|
.Pp |
Note that many of the variables that can be inspected and changed |
Note that many of the variables that can be inspected and changed |
with |
are reset when the device is opened. |
.Nm |
This can be circumvented like so: |
are reset when the device is opened. This can be circumvented |
.Pp |
like this |
|
.Dl (cat file.au; audioctl -f /dev/stdout -a) > /dev/audio |
.Dl (cat file.au; audioctl -f /dev/stdout -a) > /dev/audio |
|
.Pp |
or |
or |
|
.Pp |
.Dl (audioctl -f /dev/stdout -w blocksize=1024; cat file.au) > /dev/audio |
.Dl (audioctl -f /dev/stdout -w blocksize=1024; cat file.au) > /dev/audio |
.Sh FILES |
|
.Bl -tag -width /dev/audioctl |
|
.It Pa /dev/audioctl |
|
audio control device |
|
.El |
|
.Sh ENVIRONMENT |
.Sh ENVIRONMENT |
.Bl -tag -width AUDIOCTLDEVICE |
.Bl -tag -width AUDIOCTLDEVICE |
.It Ev AUDIOCTLDEVICE |
.It Ev AUDIOCTLDEVICE |
The audio control device to use. |
The audio control device to use. |
|
.Sh FILES |
|
.Bl -tag -width /dev/audioctl |
|
.It Pa /dev/audioctl |
|
default audio control device |
|
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr mixerctl 1 , |
.Xr mixerctl 1 , |
.Xr audio 4 , |
.Xr audio 4 , |