mirror of https://github.com/ericonr/sndio.git
call slot_stop() after draining
This commit is contained in:
parent
33ad1a504d
commit
fc071998df
|
@ -918,13 +918,13 @@ slot_list_mix(unsigned int round, unsigned int pchan, adata_t *pbuf)
|
||||||
if (s->pstate == SLOT_INIT || !(s->mode & SIO_PLAY))
|
if (s->pstate == SLOT_INIT || !(s->mode & SIO_PLAY))
|
||||||
continue;
|
continue;
|
||||||
if (s->pstate == SLOT_STOP && s->buf.used < s->bpf) {
|
if (s->pstate == SLOT_STOP && s->buf.used < s->bpf) {
|
||||||
s->pstate = SLOT_INIT;
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (log_level >= 3) {
|
if (log_level >= 3) {
|
||||||
slot_log(s);
|
slot_log(s);
|
||||||
log_puts(": drained, done\n");
|
log_puts(": drained, done\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
slot_stop(s);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
n = slot_mix_badd(s, dev_pbuf);
|
n = slot_mix_badd(s, dev_pbuf);
|
||||||
|
|
Loading…
Reference in New Issue