From 18f5c4c5652ebcda38aadd11030a7981fc10fbf9 Mon Sep 17 00:00:00 2001 From: ripsaw8080 Date: Fri, 5 Feb 2016 13:32:48 +0000 Subject: [PATCH] Stop speaker output after command write, pending counter write. The hacky implementation will serve until timer/speaker is improved. Fixes constant speaker tone in Arnie 2 and Chopper Duel when using SB sound, also Titus The Fox title screen when using speaker sound. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3960 --- src/hardware/timer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hardware/timer.cpp b/src/hardware/timer.cpp index eacd5769..454324ad 100644 --- a/src/hardware/timer.cpp +++ b/src/hardware/timer.cpp @@ -345,6 +345,8 @@ static void write_p43(Bitu /*port*/,Bitu val,Bitu /*iolen*/) { } else { PIC_DeActivateIRQ(0); } + } else if (latch == 2) { + PCSPEAKER_SetCounter(0,3); } pit[latch].new_mode = true; }