irem m72: continuous distortion in level 3 after killing an air-tank in r-type2 while dieing at the same time

This commit is contained in:
dinkc64 2015-05-16 21:23:22 +00:00
parent 83c458b3c1
commit 7025f0ed7b
1 changed files with 3 additions and 0 deletions

View File

@ -1227,6 +1227,9 @@ void __fastcall m72_sound_write_port(UINT16 port, UINT8 data)
case 0x82:
DACSignedWrite(0, data);
sample_address = (sample_address + 1) & 0x3ffff;
if (!DrvSndROM[sample_address]) {
DACWrite(0, 0); // clear dac @ end of sample, fixes distortion in rtype2 level3 after death
}
return;
}
}