diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-27 15:16:06 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-27 15:16:06 +0000 |
commit | 9bb72cc699a6eaf192df2df56715d2245f4b5118 (patch) | |
tree | ee2ed70d00423503d831241f94e56990e583b633 /sys/src/9/pc/audioac97.c | |
parent | ddfc34d648ca21ff2c1eeab72cee2a960b8357fc (diff) |
ac97: max buffer should be full samples, games/doom: enable/disable mouse grabbing when switching to the menu
Diffstat (limited to 'sys/src/9/pc/audioac97.c')
-rw-r--r-- | sys/src/9/pc/audioac97.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/audioac97.c b/sys/src/9/pc/audioac97.c index ca0028bf8..ba8ff6777 100644 --- a/sys/src/9/pc/audioac97.c +++ b/sys/src/9/pc/audioac97.c @@ -139,7 +139,7 @@ available(Ring *r) { long m; - m = (r->nbuf - 1) - buffered(r); + m = (r->nbuf - BytesPerSample) - buffered(r); if(m < 0) m = 0; return m; |