# HG changeset patch # User TomW # Date 1411900388 -3600 # Node ID 0710d7cb935f4f9cacac12cf3b063365e97451c6 # Parent 9a88154e8608d2007810b0d8f2fd6c0bafd92320 Silence PC speaker output at very high frequencies - fixes Lemmings and other games that use high frequency as "speaker off". diff -r 9a88154e8608 -r 0710d7cb935f src/pit.c --- a/src/pit.c Sat Sep 27 18:39:06 2014 +0100 +++ b/src/pit.c Sun Sep 28 11:33:08 2014 +0100 @@ -527,7 +527,12 @@ void pit_speaker_timer(int new_out, int old_out) { - speakon = ppispeakon = new_out; + int l = pit.l[2] ? pit.l[2] : 0x10000; + if (l < 25) + speakon = 0; + else + speakon = new_out; + ppispeakon = new_out; }