artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
664f861
)
Call slot_stop() after the play buffer is drained to properly cleanup
author
ratchov
<ratchov@openbsd.org>
Sat, 16 May 2015 19:27:53 +0000
(19:27 +0000)
committer
ratchov
<ratchov@openbsd.org>
Sat, 16 May 2015 19:27:53 +0000
(19:27 +0000)
the slot. Fixes periodic glitches occurring after eof is reached, and
then playback restarted with a MMC-relocate and MMC-start.
usr.bin/aucat/aucat.c
patch
|
blob
|
history
diff --git
a/usr.bin/aucat/aucat.c
b/usr.bin/aucat/aucat.c
index
e62ac2f
..
ab52872
100644
(file)
--- a/
usr.bin/aucat/aucat.c
+++ b/
usr.bin/aucat/aucat.c
@@
-917,13
+917,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);