1
0
Fork 0

Changes for new pc-speaker effects.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@849
This commit is contained in:
Sjoerd van der Berg 2003-03-30 22:53:08 +00:00
parent adf1c689e3
commit 3c9284193e
2 changed files with 3 additions and 8 deletions

View file

@ -39,7 +39,6 @@ void MIXER_Enable(MIXER_Channel * chan,bool enable);
/* PC Speakers functions, tightly related to the timer functions */
void PCSPEAKER_Enable(bool enable);
void PCSPEAKER_SetCounter(Bitu cntr,Bitu mode);
void PCSPEAKER_SetType(Bitu mode);

View file

@ -195,17 +195,13 @@ static Bit8u read_p61(Bit32u port) {
}
static void write_p61(Bit32u port,Bit8u val) {
port_61_data=val;
/*
if (val & 128) if (!keyb.read_active) KEYBOARD_ReadBuffer();
Keys should get acknowledged just by reading 0x60.
Perhaps disable controller when bit 7=1
*/
if ((val & 3)==3) {
PCSPEAKER_Enable(true);
} else {
PCSPEAKER_Enable(false);
}
if ((port_61_data ^val) & 3) PCSPEAKER_SetType(val & 3);
port_61_data=val;
}
static void write_p64(Bit32u port,Bit8u val) {