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:
parent
7eacf1408a
commit
b96dabbe98
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue