summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/audioac97.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-27 15:16:06 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-27 15:16:06 +0000
commit9bb72cc699a6eaf192df2df56715d2245f4b5118 (patch)
treeee2ed70d00423503d831241f94e56990e583b633 /sys/src/9/pc/audioac97.c
parentddfc34d648ca21ff2c1eeab72cee2a960b8357fc (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.c2
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;