mirror of https://github.com/ericonr/sndio.git
use "aucatN" for aucat(1) socket path and "midicatN" for midicat(1),
no need to increase entropy by inventing new names. use AUCAT_PATH and MIDICAT_PATH macros instead of hardcoded strings
This commit is contained in:
parent
5ad77b9a6f
commit
2a4059ae60
|
@ -76,13 +76,13 @@ bad:
|
|||
struct mio_hdl *
|
||||
mio_midithru_open(const char *str, unsigned mode, int nbio)
|
||||
{
|
||||
return mio_xxx_open(str, "midithru", mode, nbio);
|
||||
return mio_xxx_open(str, MIDICAT_PATH, mode, nbio);
|
||||
}
|
||||
|
||||
struct mio_hdl *
|
||||
mio_aucat_open(const char *str, unsigned mode, int nbio)
|
||||
{
|
||||
return mio_xxx_open(str, "softaudio", mode, nbio);
|
||||
return mio_xxx_open(str, AUCAT_PATH, mode, nbio);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -149,7 +149,7 @@ sio_aucat_open(const char *str, unsigned mode, int nbio)
|
|||
hdl = malloc(sizeof(struct sio_aucat_hdl));
|
||||
if (hdl == NULL)
|
||||
return NULL;
|
||||
if (!aucat_open(&hdl->aucat, str, "softaudio", mode, nbio)) {
|
||||
if (!aucat_open(&hdl->aucat, str, AUCAT_PATH, mode, nbio)) {
|
||||
free(hdl);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue