diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-02-01 15:23:38 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-02-01 15:23:38 +0100 |
commit | d41f67c2b9cf3f915b12d113bd5952ce90062c8a (patch) | |
tree | e030910cc51e30bb57fd7f57e9ad5d7056be6962 /sys/src/9/pc/audioac97.c | |
parent | 0b268440b9d557f64cba6f7db644a6536fa2b158 (diff) |
audio: fix delay control, increase default buffer delay to 40ms
just doing a single sleep isnt enougth, as we get woken
up for every block!
Diffstat (limited to 'sys/src/9/pc/audioac97.c')
-rw-r--r-- | sys/src/9/pc/audioac97.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/pc/audioac97.c b/sys/src/9/pc/audioac97.c index 477324870..08c0f62f2 100644 --- a/sys/src/9/pc/audioac97.c +++ b/sys/src/9/pc/audioac97.c @@ -381,7 +381,8 @@ ac97write(Audio *adev, void *vp, long n, vlong) } p += n; } - sleep(&ring->r, outrate, ctlr); + while(outrate(ctlr) == 0) + sleep(&ring->r, outrate, ctlr); return p - (uchar*)vp; } |