YM2612: fix inVol taking effect unnecessarily

thanks Slightly Large NC!
This commit is contained in:
tildearrow 2025-11-11 03:47:34 -05:00
parent 92ad27f87e
commit 7f9baedc89

View file

@ -681,7 +681,7 @@ void DivPlatformGenesis::tick(bool sysTick) {
if (chan[i].std.vol.had) {
int inVol=chan[i].std.vol.val;
if (inVol>0) {
if (chan[i].dacMode && inVol>0) {
inVol+=63;
}
chan[i].outVol=VOL_SCALE_LOG_BROKEN(chan[i].vol,MIN(127,inVol),127);