version 1.18, 2004/07/06 02:46:06 |
version 1.19, 2004/07/30 11:48:58 |
|
|
.Nm audioctl |
.Nm audioctl |
.Op Fl f Ar file |
.Op Fl f Ar file |
.Op Fl n |
.Op Fl n |
.Ar name=value |
.Ar name Ns = Ns Ar value |
.Op Ar ... |
.Op Ar ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
|
|
device. |
device. |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width "name=valueXX" |
.It Fl a |
.It Fl a |
Print all device variables and their current values. |
Print all device variables and their current values. |
.It Ar name=value |
|
Attempt to set the specified variable |
|
.Ar name |
|
to |
|
.Ar value . |
|
.It Fl f Ar file |
.It Fl f Ar file |
Specify an alternative audio control device. |
Specify an alternative audio control device. |
.It Fl n |
.It Fl n |
Suppress printing of the variable name. |
Suppress printing of the variable name. |
|
.It Ar name Ns = Ns Ar value |
|
Attempt to set the specified variable |
|
.Ar name |
|
to |
|
.Ar value . |
.El |
.El |
.Sh ENVIRONMENT |
.Sh ENVIRONMENT |
.Bl -tag -width AUDIOCTLDEVICE |
.Bl -tag -width AUDIOCTLDEVICE |
|
|
default audio control device |
default audio control device |
.El |
.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 |
.Pp |
.Dl $ audioctl play.sample_rate=11025 |
.Dl $ audioctl play.sample_rate=11025 |
.Pp |
.Pp |
|
|
device is opened. |
device is opened. |
This can be circumvented like so: |
This can be circumvented like so: |
.Pp |
.Pp |
.Dl $ (cat file.au; audioctl -f /dev/audioctl -a) > /dev/audio |
.Dl $ (cat file.au; audioctl -f /dev/audioctl -a) \*(Gt /dev/audio |
or |
or |
.Bd -literal -offset indent -compact |
.Bd -literal -offset indent -compact |
$ (audioctl -f /dev/audioctl blocksize=1024; cat file.au) \e |
$ (audioctl -f /dev/audioctl blocksize=1024; cat file.au) \e |
> /dev/audio |
\*(Gt /dev/audio |
.Ed |
.Ed |
.Sh SEE ALSO |
.Sh SEE ALSO |
|
.Xr aucat 1 , |
|
.Xr cdio 1 , |
.Xr mixerctl 1 , |
.Xr mixerctl 1 , |
.Xr audio 4 , |
.Xr audio 4 , |
.Xr sysctl 8 |
.Xr sysctl 8 |