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:
parent
0a2704969e
commit
4f558a5ab7
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue