ref: 41c959afd6f41c8151c57685fabe7e148f9e2e88
parent: 5a2427a6cb3543d008b1e1428e85dec37cb8378e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Jan 3 16:31:27 EST 2023
audio/mixfs: no loopback delay
--- a/sys/src/cmd/audio/mixfs/mixfs.c
+++ b/sys/src/cmd/audio/mixfs/mixfs.c
@@ -118,7 +118,7 @@
n = (long)(mixrp - s->rp);
if(n > NBUF && (s->used == 0 || sweep))
s->run = 0;
- if(n >= NDELAY)
+ if(n > 0)
rwakeup(s);
}
}
@@ -202,7 +202,7 @@
s->run = 1;
}
m = (long)(mixrp - s->rp);
- if(m < NDELAY){
+ if(m <= 0){
s->run = 1;
rsleep(s);
continue;