diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-06-04 06:15:29 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-06-04 06:15:29 +0000 |
commit | 2f26a15fe85a93502fda187db3aa3d3b3af985bb (patch) | |
tree | f0058377c8c72be142aaa0d4fe60b0492a2b8bb4 /usr.bin/aucat/aucat.1 | |
parent | f0d36a131a1ee4ee7ed9a0c5937c9dab18f7090c (diff) |
Allow the audio device to be opened only while it's actually used.
This is necessary for uaudio devices, for instance to start aucat
before the device is plugged. Or to unplug a device whithout
having to restart aucat when another device is plugged. This is
controlled with the new -a option.
Allow multiple audio devices to be used concurently, i.e.
multiple ``-f devname'' options to be used; -f options must follow
per-device options, which is what we do for other options.
Diffstat (limited to 'usr.bin/aucat/aucat.1')
-rw-r--r-- | usr.bin/aucat/aucat.1 | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/usr.bin/aucat/aucat.1 b/usr.bin/aucat/aucat.1 index dfb35e0467e..a94cb907027 100644 --- a/usr.bin/aucat/aucat.1 +++ b/usr.bin/aucat/aucat.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: aucat.1,v 1.69 2010/04/22 17:43:30 ratchov Exp $ +.\" $OpenBSD: aucat.1,v 1.70 2010/06/04 06:15:28 ratchov Exp $ .\" .\" Copyright (c) 2006 Alexandre Ratchov <alex@caoua.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: April 22 2010 $ +.Dd $Mdocdate: June 4 2010 $ .Dt AUCAT 1 .Os .Sh NAME @@ -24,6 +24,7 @@ .Nm aucat .Bk -words .Op Fl dlnu +.Op Fl a Ar flag .Op Fl b Ar nframes .Op Fl C Ar min : Ns Ar max .Op Fl c Ar min : Ns Ar max @@ -58,6 +59,20 @@ which does not convert on the fly and supports playback of .au files. .Pp The options are as follows: .Bl -tag -width Ds +.It Fl a Ar flag +Control whether +.Nm +opens the device only when needed or keeps it open all the time. +If the flag is +.Va on +then the device is kept open all the time, ensuring no other program can +steal it. +If the flag is +.Va off , +then it's automatically closed, allowing other programs to have direct +access to the device, or the device to be disconnected. +The default is +.Va on . .It Fl b Ar nframes The buffer size of the audio device in frames. A frame consists of one sample for each channel in the stream. @@ -553,7 +568,7 @@ connected to the .Va midithru:0 MIDI device: .Bd -literal -offset indent -$ aucat -f aucat:0.mmc -t slave -q midithru:0 -i file.wav +$ aucat -t slave -q midithru:0 -i file.wav -f aucat:0.mmc .Ed .Pp At this stage, |