Page MenuHomeFreeBSD

D53337.id165106.diff
No OneTemporary

D53337.id165106.diff

diff --git a/sys/dev/sound/dummy.c b/sys/dev/sound/dummy.c
--- a/sys/dev/sound/dummy.c
+++ b/sys/dev/sound/dummy.c
@@ -104,9 +104,10 @@
ch = &sc->chans[i];
if (!ch->run)
continue;
- if (ch->dir == PCMDIR_PLAY)
+ if (ch->dir == PCMDIR_PLAY) {
ch->ptr += sndbuf_getblksz(ch->buf);
- else
+ ch->ptr %= sndbuf_getsize(ch->buf);
+ } else
sndbuf_fillsilence(ch->buf);
snd_mtxunlock(sc->lock);
chn_intr(ch->chan);

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 2, 1:15 AM (13 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28408700
Default Alt Text
D53337.id165106.diff (438 B)

Event Timeline