Permalink
Browse files

PC speaker: Dont generate continuous output if the PIT timer code ind…

…icates mode 0. Mode 0 is one-shot. This fixes problems with numerous demoscene productions where audio playback always seems to leave the PC speaker on (BEEEEEEP) even if playing to Sound Blaster.
  • Loading branch information...
joncampbell123 committed Feb 11, 2018
1 parent 7298805 commit 8f8a2c8f5a9c6fc57593a9c35578e3b28c8dd25f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/hardware/pcspeaker.cpp
@@ -268,6 +268,9 @@ void PCSPEAKER_SetPITControl(Bitu mode) {
#endif
// TODO: implement all modes
switch(mode) {
case 0:
spkr.pit_mode = 0;
break;
case 1:
spkr.pit_mode = 1;
spkr.pit_mode1_waiting_for_counter = 1;

0 comments on commit 8f8a2c8

Please sign in to comment.