Silence PC speaker output at very high frequencies - fixes Lemmings and other games that use high frequency as "speaker off".

This commit is contained in:
TomW 2014-09-28 11:33:08 +01:00
commit b96dabbe98

View file

@ -527,7 +527,12 @@ void pit_refresh_timer_at(int new_out, int old_out)
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;
}