version 1.34, 2008/11/16 18:34:04 |
version 1.35, 2008/11/16 20:44:03 |
|
|
.Op Fl i Ar file |
.Op Fl i Ar file |
.Op Fl o Ar file |
.Op Fl o Ar file |
.Op Fl r Ar rate |
.Op Fl r Ar rate |
|
.Op Fl s Ar file |
.Op Fl v Ar volume |
.Op Fl v Ar volume |
.Op Fl x Ar policy |
.Op Fl x Ar policy |
.Ek |
.Ek |
|
|
.Sq - |
.Sq - |
then standard input will be used. |
then standard input will be used. |
.It Fl l |
.It Fl l |
Listen for incoming connections on a Unix domain socket. |
Listen for incoming connections on Unix domain sockets. |
A client might use |
A client might use |
.Nm |
.Nm |
instead of the regular |
instead of the regular |
|
|
in order to share the physical device with other clients. |
in order to share the physical device with other clients. |
The default socket path is |
The default socket path is |
.Pa /tmp/aucat.sock |
.Pa /tmp/aucat.sock |
but it can be changed with the |
but other paths can be used with the |
.Ev AUCAT_SOCKET |
.Fl s |
environment variable. |
option. |
.It Fl o Ar file |
.It Fl o Ar file |
Add this file to the list of files in which to store recorded samples. |
Add this file to the list of files in which to store recorded samples. |
If the option argument is |
If the option argument is |
|
|
.It Fl r Ar rate |
.It Fl r Ar rate |
Sample rate in Hertz of the playback or record stream. |
Sample rate in Hertz of the playback or record stream. |
The default is 44100Hz. |
The default is 44100Hz. |
|
.It Fl s Ar file |
|
Add this path to the list of sockets to listen on. |
|
Meaningful in server mode only (i.e. when the |
|
.Fl l |
|
option is used). |
.It Fl u |
.It Fl u |
Normally |
Normally |
.Nm |
.Nm |
|
|
.Dv SIGUSR2 , |
.Dv SIGUSR2 , |
it increases or decreases debug level, respectively. |
it increases or decreases debug level, respectively. |
.Pp |
.Pp |
Settings for input |
Settings for input files |
.Pq Fl i |
.Pq Fl i , |
and output |
output files |
.Pq Fl o |
.Pq Fl o |
files can be changed using the |
and sockets |
.Fl Ccehrx |
.Pq Fl s |
|
can be changed using the |
|
.Fl Ccehrvx |
options. |
options. |
The last |
The last |
.Fl Ccehrx |
.Fl Ccehrvx |
options specified before an |
options specified before an |
.Fl i |
.Fl i , |
or |
|
.Fl o |
.Fl o |
|
and |
|
.Fl s |
are applied to |
are applied to |
.Ar file . |
.Ar file . |
.Pp |
.Pp |
|
|
.Nm |
.Nm |
will exit with an error. |
will exit with an error. |
.Sh ENVIRONMENT |
.Sh ENVIRONMENT |
.Bl -tag -width "AUCAT_SOCKETXXX" -compact |
.Bl -tag -width "AUDIODEVICE" -compact |
.It Ev AUCAT_DEBUG |
.It Ev AUCAT_DEBUG |
The debug level: |
The debug level: |
may be a value between 0 and 4. |
may be a value between 0 and 4. |
.It Ev AUCAT_SOCKET |
|
Path to the Unix domain socket to use. |
|
.It Ev AUDIODEVICE |
.It Ev AUDIODEVICE |
The audio device to use. |
The audio device to use. |
.El |
.El |
|
|
full-duplex: |
full-duplex: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
$ aucat -i drums.raw -i bass.raw -o guitar.raw |
$ aucat -i drums.raw -i bass.raw -o guitar.raw |
|
.Ed |
|
.Pp |
|
The following will start |
|
.Nm |
|
in server mode with the default parameters. |
|
.Bd -literal -offset indent |
|
$ aucat -l |
|
.Ed |
|
.Pp |
|
The following will start |
|
.Nm |
|
in server mode with the default parameters, but will create an |
|
additional socket for output to channels 2:3 only (rear speakers |
|
on most cards). |
|
.Bd -literal -offset indent |
|
$ aucat -l -s /tmp/aucat.sock -c 2:3 -s /tmp/aucat.sock.rear |
|
.Ed |
|
.Pp |
|
The following will start |
|
.Nm |
|
in server mode creating the defaut socket with low volume and |
|
an additional socket for high volume output. |
|
.Bd -literal -offset indent |
|
$ aucat -l -v 65 -s /tmp/aucat.sock -v 127 -s /tmp/aucat.sock.max |
.Ed |
.Ed |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr audioctl 1 , |
.Xr audioctl 1 , |