fix volume command

This commit is contained in:
LTVA1 2024-08-22 14:55:25 +03:00
parent 093b1fe4dc
commit ecb46ae682

View file

@ -938,7 +938,7 @@ int DivPlatformSID3::dispatch(DivCommand c) {
if (!chan[c.chan].std.vol.has) {
chan[c.chan].outVol=c.value;
chan[c.chan].vol=chan[c.chan].outVol;
rWrite(c.chan*7+3,(chan[c.chan].duty>>8) | (chan[c.chan].vol << 4));
rWrite(SID3_REGISTER_ADSR_VOL + c.chan * SID3_REGISTERS_PER_CHANNEL, chan[c.chan].vol);
}
}
break;