From 2a1d36928154c3b295510664191d3e47403f73b9 Mon Sep 17 00:00:00 2001 From: aiju Date: Sat, 11 Apr 2015 16:07:15 +0200 Subject: [PATCH] games/gb: limit audio range to prevent clipping --- sys/src/games/gb/apu.c | 4 ++-- 1 file 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; } }