d_m72: clear dac when not being written to, fixes distortion in second-to-last level of mr.heli, also applies to end of level1 in air duel
This commit is contained in:
parent
f0884afda1
commit
b28adf2f1f
|
@ -2123,10 +2123,13 @@ static INT32 DrvFrame()
|
|||
if (DrvSndROM[sample_address]) {
|
||||
DACSignedWrite(0, DrvSndROM[sample_address]);
|
||||
sample_address = (sample_address + 1) & 0x3ffff;
|
||||
if (!DrvSndROM[sample_address]) {
|
||||
DACWrite(0, 0); // Clear DAC output buffer at end of sample - fixes distortion in Air Duel
|
||||
}
|
||||
//if (!DrvSndROM[sample_address]) {
|
||||
// DACWrite(0, 0); // Clear DAC output buffer at end of sample - fixes distortion in Air Duel
|
||||
//}
|
||||
} else {
|
||||
DACWrite(0, 0); // Clear DAC output buffer at end of sample - fixes distortion in Air Duel & second-to-last level of Mr. Heli
|
||||
}
|
||||
|
||||
} else if (z80_nmi_enable == Z80_REAL_NMI) {
|
||||
ZetNmi();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue