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:
parent
bb4fbdd9c2
commit
f2e1e307c6
1 changed files with 0 additions and 1 deletions
|
|
@ -401,7 +401,6 @@ void pit_write(uint16_t addr, uint8_t val, void *p)
|
||||||
pit->rl[t] = pit_read_timer(pit, t);
|
pit->rl[t] = pit_read_timer(pit, t);
|
||||||
}
|
}
|
||||||
pit->rereadlatch[t]=1;
|
pit->rereadlatch[t]=1;
|
||||||
if (t == 2) ppispeakon=speakon=(pit->m[2]==0)?0:1;
|
|
||||||
pit->initial[t] = 1;
|
pit->initial[t] = 1;
|
||||||
if (!pit->m[t])
|
if (!pit->m[t])
|
||||||
pit_set_out(pit, t, 0);
|
pit_set_out(pit, t, 0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue