From 6f3b9f2e5d671f4a6b6277e22df8c6846992ad7c Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 30 Mar 2022 22:55:55 -0500 Subject: [PATCH] VRC6: changes around volume macro --- src/engine/platform/vrc6.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/vrc6.cpp b/src/engine/platform/vrc6.cpp index 27cb2ffaf..2162fe567 100644 --- a/src/engine/platform/vrc6.cpp +++ b/src/engine/platform/vrc6.cpp @@ -149,7 +149,7 @@ void DivPlatformVRC6::tick() { chWrite(i,0,chan[i].outVol); } } else { // pulse - chan[i].outVol=((chan[i].vol&15)*MIN(63,chan[i].std.vol))/63; + chan[i].outVol=((chan[i].vol&15)*MIN(15,chan[i].std.vol))/15; if (chan[i].outVol<0) chan[i].outVol=0; if (chan[i].outVol>15) chan[i].outVol=15; if ((!isMuted[i]) && (!chan[i].pcm)) {