version 1.17, 2004/05/09 03:37:45 |
version 1.18, 2004/07/06 02:46:06 |
|
|
.Nm audioctl |
.Nm audioctl |
.Op Fl f Ar file |
.Op Fl f Ar file |
.Op Fl n |
.Op Fl n |
.Fl w |
|
.Ar name=value |
.Ar name=value |
.Op Ar ... |
.Op Ar ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
|
|
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Fl a |
.It Fl a |
Print all device variables and their current values. |
Print all device variables and their current values. |
.It Fl w Ar name=value |
.It Ar name=value |
Attempt to set the specified variable |
Attempt to set the specified variable |
.Ar name |
.Ar name |
to |
to |
|
|
.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 -w play.sample_rate=11025 |
.Dl $ audioctl play.sample_rate=11025 |
.Pp |
.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 |
are reset when the |
are reset when the |
|
|
.Dl $ (cat file.au; audioctl -f /dev/audioctl -a) > /dev/audio |
.Dl $ (cat file.au; audioctl -f /dev/audioctl -a) > /dev/audio |
or |
or |
.Bd -literal -offset indent -compact |
.Bd -literal -offset indent -compact |
$ (audioctl -f /dev/audioctl -w blocksize=1024; cat file.au) \e |
$ (audioctl -f /dev/audioctl blocksize=1024; cat file.au) \e |
> /dev/audio |
> /dev/audio |
.Ed |
.Ed |
.Sh SEE ALSO |
.Sh SEE ALSO |