mirror of https://github.com/ericonr/sndio.git
add bits for midi/N style port names
This commit is contained in:
parent
be643dd0ef
commit
d6cb8d427d
|
@ -486,8 +486,7 @@ aucat_open(struct aucat *hdl, const char *str, unsigned int mode,
|
|||
DPRINTF("%s: junk at end of dev name\n", p);
|
||||
return 0;
|
||||
}
|
||||
if (type)
|
||||
devnum += 16; /* XXX */
|
||||
devnum += type * 16; /* XXX */
|
||||
DPRINTF("aucat_open: host=%s unit=%u devnum=%u opt=%s\n",
|
||||
host, unit, devnum, opt);
|
||||
if (host[0] != '\0') {
|
||||
|
|
|
@ -68,6 +68,8 @@ mio_open(const char *str, unsigned int mode, int nbio)
|
|||
return mio_aucat_open(p, mode, nbio, 0);
|
||||
if ((p = sndio_parsetype(str, "midithru")) != NULL)
|
||||
return mio_aucat_open(p, mode, nbio, 1);
|
||||
if ((p = sndio_parsetype(str, "midi")) != NULL)
|
||||
return mio_aucat_open(p, mode, nbio, 2);
|
||||
#if defined(USE_RMIDI) || defined(USE_ALSA)
|
||||
if ((p = sndio_parsetype(str, "rmidi")) != NULL) {
|
||||
#if defined(USE_SUN)
|
||||
|
|
|
@ -93,6 +93,9 @@ Audio device exposed by
|
|||
.It Pa midithru
|
||||
MIDI thru box created with
|
||||
.Xr sndiod 1 .
|
||||
.It Pa midi
|
||||
MIDI port exposed by
|
||||
.Xr sndiod 1 .
|
||||
.It Pa default
|
||||
Any audio device or MIDI port.
|
||||
.El
|
||||
|
|
Loading…
Reference in New Issue