summaryrefslogtreecommitdiff
path: root/sys/src/games
diff options
context:
space:
mode:
authoraiju <aiju@phicode.de>2015-04-11 16:07:15 +0200
committeraiju <aiju@phicode.de>2015-04-11 16:07:15 +0200
commit2a1d36928154c3b295510664191d3e47403f73b9 (patch)
treebd5ae6fadb685843f1650184512ce0c048a62018 /sys/src/games
parentaadbcf0a32c92b1ba4584ad9487854ede43932ca (diff)
games/gb: limit audio range to prevent clipping
Diffstat (limited to 'sys/src/games')
-rw-r--r--sys/src/games/gb/apu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/games/gb/apu.c b/sys/src/games/gb/apu.c
index e995ce83d..0501b0db6 100644
--- a/sys/src/games/gb/apu.c
+++ b/sys/src/games/gb/apu.c
@@ -270,8 +270,8 @@ sampletick(void *)
s[1] *= 1 + (cntl >> 4 & 7);
if(sbufp < sbuf + nelem(sbuf)){
- sbufp[0] = s[0] * 60;
- sbufp[1] = s[1] * 60;
+ sbufp[0] = s[0] * 30;
+ sbufp[1] = s[1] * 30;
sbufp += 2;
}
}