call slot_stop() after draining

This commit is contained in:
Alexandre Ratchov 2015-05-16 21:23:07 +02:00
parent 33ad1a504d
commit fc071998df
1 changed files with 1 additions and 1 deletions

View File

@ -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))
continue;
if (s->pstate == SLOT_STOP && s->buf.used < s->bpf) {
s->pstate = SLOT_INIT;
#ifdef DEBUG
if (log_level >= 3) {
slot_log(s);
log_puts(": drained, done\n");
}
#endif
slot_stop(s);
continue;
}
n = slot_mix_badd(s, dev_pbuf);