diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2011-10-17 21:09:12 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2011-10-17 21:09:12 +0000 |
commit | cd90aa38151068c861041641b0e4e40b3afa4fae (patch) | |
tree | 12bfda26b4b359086eeb1a5912967b20a36934f0 /lib/libsndio/mio.c | |
parent | e796f6ed824da5e9e191c2ab4bd774e6efa3392f (diff) |
Remove midicat since aucat can now be used instead of midicat
with almost the same syntax (roughly an extra -M option).
Thru boxes are created with aucat, and corresponding MIDI port
names have the "aucat" prefix instead of "midithru". The old
device name will still work some time for backward compatibility.
ok deraadt
Diffstat (limited to 'lib/libsndio/mio.c')
-rw-r--r-- | lib/libsndio/mio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libsndio/mio.c b/lib/libsndio/mio.c index 397d713346c..55631863df3 100644 --- a/lib/libsndio/mio.c +++ b/lib/libsndio/mio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mio.c,v 1.11 2011/05/06 07:30:20 ratchov Exp $ */ +/* $OpenBSD: mio.c,v 1.12 2011/10/17 21:09:11 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -49,7 +49,7 @@ mio_open(const char *str, unsigned mode, int nbio) if (str == NULL && !issetugid()) str = getenv("MIDIDEVICE"); if (str == NULL) { - hdl = mio_midithru_open("0", mode, nbio); + hdl = mio_aucat_open("0", mode, nbio); if (hdl != NULL) return hdl; return mio_rmidi_open("0", mode, nbio); @@ -62,7 +62,7 @@ mio_open(const char *str, unsigned mode, int nbio) len = sep - str; if (len == (sizeof(prefix_midithru) - 1) && memcmp(str, prefix_midithru, len) == 0) - return mio_midithru_open(sep + 1, mode, nbio); + return mio_aucat_open(sep + 1, mode, nbio); if (len == (sizeof(prefix_aucat) - 1) && memcmp(str, prefix_aucat, len) == 0) return mio_aucat_open(sep + 1, mode, nbio); |