Page MenuHomeFreeBSD

D53337.1790566262.diff
No OneTemporary

Size
438 B
Referenced Files
None
Subscribers
None

D53337.1790566262.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, Sep 28, 3:31 AM (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29963476
Default Alt Text
D53337.1790566262.diff (438 B)

Event Timeline