Improvements to PC speaker - fixes sound on Beyond Castle Wolfenstein and probably other games as well.
This commit is contained in:
parent
967feffbc0
commit
67cb9e3781
8 changed files with 35 additions and 22 deletions
|
|
@ -124,9 +124,10 @@ void keyboard_pcjr_write(uint16_t port, uint8_t val, void *priv)
|
|||
|
||||
case 0x61:
|
||||
keyboard_pcjr.pb = val;
|
||||
gated = ((val & 3) == 3);
|
||||
if (gated)
|
||||
wasgated = 1;
|
||||
speaker_gated = val & 1;
|
||||
speaker_enable = val & 2;
|
||||
if (speaker_enable)
|
||||
was_speaker_enable = 1;
|
||||
pit_set_gate(2, val & 1);
|
||||
sn76489_mute = speaker_mute = 1;
|
||||
switch (val & 0x60)
|
||||
|
|
|
|||
Loading…
Reference in a new issue