diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-07-25 08:44:28 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-07-25 08:44:28 +0000 |
commit | 0844fac57a53bca70c73354af3517b8bea149328 (patch) | |
tree | 38194a88aaef0f05f48c3bc6df1dec993ead1163 /lib/libsndio/sio_open.3 | |
parent | 8c4eca591954bdaedc99cf39f7f3f83fdc5ae579 (diff) |
Currently midi capable programs can control midi hardware, but
cannot cooperate with other programs. The aim of this change is
to allow any program to send midi data to other programs as they
were midi hardware. For instance, this change should solve the
longstanding problem of using a midi sequencer with software
synthesizers. More precisely:
- new midicat(1) utility (actually hardlink to aucat(1)).
it creates software midi thru boxes, allowing programs
to send midi messages to other programs as they were
midi(4) hardware.
- new midi api in libsndio (see mio_open(3)), to access
midi(4) devices and midicat(1) sockets in a uniform way.
- new device naming scheme <service>:<unit>[.<option>],
common to audio and midi.
- new sndio(7) manual describing concepts and naming
The current audio device naming still works, but people having
scripts or configuration files containing device names could read
the sndio(7) man page and slowly start updating device names.
discussed with jakemsr@ and deraadt@, help form jmc@
Diffstat (limited to 'lib/libsndio/sio_open.3')
-rw-r--r-- | lib/libsndio/sio_open.3 | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/lib/libsndio/sio_open.3 b/lib/libsndio/sio_open.3 index 78658d12c2b..744a556d009 100644 --- a/lib/libsndio/sio_open.3 +++ b/lib/libsndio/sio_open.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sio_open.3,v 1.19 2009/05/15 11:07:41 ratchov Exp $ +.\" $OpenBSD: sio_open.3,v 1.20 2009/07/25 08:44:27 ratchov Exp $ .\" .\" Copyright (c) 2007 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: May 15 2009 $ +.Dd $Mdocdate: July 25 2009 $ .Dt SIO_OPEN 3 .Os .Sh NAME @@ -104,11 +104,8 @@ If that fails, it then tries to use the hardware device. The .Ar name -parameter gives the name of the -.Xr aucat 1 -socket or the path of the -.Xr audio 4 -device. +parameter gives the device string discussed in +.Xr sndio 7 . In most cases it should be set to NULL to allow the user to select it using the .Ev AUDIODEVICE @@ -728,18 +725,18 @@ functions return the number of bytes transferred. .Sh ENVIRONMENT .Bl -tag -width "AUDIODEVICEXXX" -compact .It Ev AUDIODEVICE -Name of the -.Xr aucat 1 -socket to connect to, or path to the -.Xr audio 4 -device to use. +Device to use if +.Fn sio_open +is called with a NULL +.Va name +argument. .It Ev SIO_DEBUG The debug level: may be a value between 0 and 2. .El .Sh FILES -.Bl -tag -width "/tmp/aucat-<uid>/default" -compact -.It Pa /tmp/aucat-<uid>/default +.Bl -tag -width "/tmp/aucat-<uid>/softaudio0" -compact +.It Pa /tmp/aucat-<uid>/softaudio0 Default path to .Xr aucat 1 socket to connect to. @@ -754,6 +751,7 @@ device to use. .Sh SEE ALSO .Xr aucat 1 , .Xr audio 4 , +.Xr sndio 7 , .Xr audio 9 .Sh BUGS The |