Don't write directly to PC speaker state when writing PIT control byte. Fixes engine cacophony in Hard Drivin' II.

This commit is contained in:
SarahW 2017-11-06 21:38:07 +00:00
commit f2e1e307c6

View file

@ -401,7 +401,6 @@ void pit_write(uint16_t addr, uint8_t val, void *p)
pit->rl[t] = pit_read_timer(pit, t);
}
pit->rereadlatch[t]=1;
if (t == 2) ppispeakon=speakon=(pit->m[2]==0)?0:1;
pit->initial[t] = 1;
if (!pit->m[t])
pit_set_out(pit, t, 0);