safety check

This commit is contained in:
cam900 2022-03-16 11:41:24 +09:00 committed by GitHub
parent 53ad1c93e6
commit c269346eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -459,8 +459,8 @@ void DivPlatformX1_010::tick() {
}
}
if (chan[i].envChanged) {
chan[i].lvol=isMuted[i]?0:((chan[i].outVol&0xf)*((chan[i].pan>>4)&0xf))/15;
chan[i].rvol=isMuted[i]?0:((chan[i].outVol&0xf)*((chan[i].pan>>0)&0xf))/15;
chan[i].lvol=isMuted[i]?0:(((chan[i].outVol&0xf)*((chan[i].pan>>4)&0xf))/15);
chan[i].rvol=isMuted[i]?0:(((chan[i].outVol&0xf)*((chan[i].pan>>0)&0xf))/15);
updateEnvelope(i);
chan[i].envChanged=false;
}