Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145004956
D53337.1777150234.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
438 B
Referenced Files
None
Subscribers
None
D53337.1777150234.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 25, 8:50 PM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28429661
Default Alt Text
D53337.1777150234.diff (438 B)
Attached To
Mode
D53337: snd_dummy: Round channel pointer after each write
Attached
Detach File
Event Timeline
Log In to Comment