ref: 793049a8c2cce80354144afb60f158a3f26e6b44
parent: e8ac41724d33d16cfb66e779a083606854487104
author: aiju <aiju@phicode.de>
date: Sat Apr 11 12:07:15 EDT 2015
games/gb: limit audio range to prevent clipping
--- a/sys/src/games/gb/apu.c
+++ b/sys/src/games/gb/apu.c
@@ -270,8 +270,8 @@
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;
}
}
--
⑨