1
0
Fork 0

Add pit mode 1 which basically just keeps output high

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1972
This commit is contained in:
Sjoerd van der Berg 2004-09-11 08:09:25 +00:00
parent 0a2704969e
commit 4f558a5ab7

View file

@ -76,6 +76,8 @@ static void ForwardPIT(float newindex) {
switch (spkr.pit_mode) {
case 0:
return;
case 1:
return;
case 2:
while (passed>0) {
/* passed the initial low cycle? */
@ -172,6 +174,11 @@ void PCSPEAKER_SetCounter(Bitu cntr,Bitu mode) {
AddDelayEntry(newindex,spkr.pit_last);
spkr.pit_index=0;
break;
case 1:
if (spkr.mode!=SPKR_PIT_ON) return;
spkr.pit_last=SPKR_VOLUME;
AddDelayEntry(newindex,spkr.pit_last);
break;
case 2: /* Single cycle low, rest low high generator */
spkr.pit_index=0;
spkr.pit_last=-SPKR_VOLUME;