mirror of https://github.com/ericonr/sndio.git
fix comments
This commit is contained in:
parent
fa5a65f0d9
commit
9ab5fcf177
|
@ -2126,7 +2126,7 @@ join_new(char *name)
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (debug_level >= 3) {
|
if (debug_level >= 3) {
|
||||||
aproc_dbg(p);
|
aproc_dbg(p);
|
||||||
dbg_puts("\n");
|
dbg_puts(": new\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return p;
|
return p;
|
||||||
|
|
|
@ -567,7 +567,7 @@ ctl_getidx(struct aproc *p, char *who)
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (debug_level >= 1) {
|
if (debug_level >= 1) {
|
||||||
dbg_puts(name);
|
dbg_puts(name);
|
||||||
dbg_puts(": too many instances");
|
dbg_puts(": too many instances\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -495,7 +495,9 @@ sock_startreq(void *arg)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
(void)sock_attach(f, 0);
|
(void)sock_attach(f, 0);
|
||||||
}/*
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
* Callback invoked by MMC stop
|
* Callback invoked by MMC stop
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
@ -1217,11 +1219,11 @@ sock_execmsg(struct sock *f)
|
||||||
#endif
|
#endif
|
||||||
aproc_del(f->pipe.file.rproc);
|
aproc_del(f->pipe.file.rproc);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* XXX: device could have desappeared at this point,
|
* XXX: device could have desappeared at this point,
|
||||||
* see how this is fixed in wav.c
|
* see how this is fixed in wav.c
|
||||||
*/
|
*/
|
||||||
}
|
|
||||||
if ((f->pstate == SOCK_START || f->pstate == SOCK_READY) &&
|
if ((f->pstate == SOCK_START || f->pstate == SOCK_READY) &&
|
||||||
ctl_slotstart(f->dev->midi, f->slot))
|
ctl_slotstart(f->dev->midi, f->slot))
|
||||||
(void)sock_attach(f, 1);
|
(void)sock_attach(f, 1);
|
||||||
|
@ -1608,7 +1610,7 @@ sock_read(struct sock *f)
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* XXX: sock_attach() may not start if there's not enough
|
* XXX: sock_attach() may not start if there's not enough
|
||||||
* samples queues, if so ctl_slotstart() will trigger
|
* samples queued, if so ctl_slotstart() will trigger
|
||||||
* other streams, but this one won't start.
|
* other streams, but this one won't start.
|
||||||
*/
|
*/
|
||||||
if (f->pstate == SOCK_READY && ctl_slotstart(f->dev->midi, f->slot))
|
if (f->pstate == SOCK_READY && ctl_slotstart(f->dev->midi, f->slot))
|
||||||
|
|
Loading…
Reference in New Issue