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
|
|
@ -3,6 +3,7 @@
|
|||
#include "mem.h"
|
||||
#include "pic.h"
|
||||
#include "sound.h"
|
||||
#include "sound_speaker.h"
|
||||
#include "timer.h"
|
||||
|
||||
#include "keyboard.h"
|
||||
|
|
@ -75,9 +76,10 @@ void keyboard_xt_write(uint16_t port, uint8_t val, void *priv)
|
|||
keyboard_xt.pb = val;
|
||||
ppi.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);
|
||||
|
||||
if (val & 0x80)
|
||||
|
|
|
|||
Loading…
Reference in a new issue