Take into account that speaker might be disabled in settings. Fixes bug #434.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3967
This commit is contained in:
parent
30db525521
commit
9035510f06
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ void PCSPEAKER_SetCounter(Bitu cntr,Bitu mode) {
|
|||
spkr.pit_max=(1000.0f/PIT_TICK_RATE)*cntr;
|
||||
break;
|
||||
case 3: /* Square wave generator */
|
||||
if (cntr<spkr.min_tr) {
|
||||
if (cntr==0 || cntr<spkr.min_tr) {
|
||||
/* skip frequencies that can't be represented */
|
||||
spkr.pit_last=0;
|
||||
spkr.pit_mode=0;
|
||||
|
|
Loading…
Add table
Reference in a new issue