From 6df07b4af39013f40d64828fc9da8191ef130fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Tue, 23 Sep 2014 21:04:05 +0000 Subject: [PATCH] [NTVDM]: Fix the PC speaker frequency, that was an octave higher than normal for the pacman.com game of CORE-8436, as well as in Dave and Rescue-Rover (because they use PIT mode 3, aka. square wave), but was normal for Advanced Netwars (which uses PIT mode 2, aka. rate generator). Now all those games get correct sound frequency. svn path=/trunk/; revision=64251 --- reactos/subsystems/ntvdm/hardware/speaker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/ntvdm/hardware/speaker.c b/reactos/subsystems/ntvdm/hardware/speaker.c index 03bf25cc84a..542e57d8b93 100644 --- a/reactos/subsystems/ntvdm/hardware/speaker.c +++ b/reactos/subsystems/ntvdm/hardware/speaker.c @@ -48,8 +48,8 @@ VOID SpeakerChange(VOID) if (PitChannel2ReloadValue == 0) PitChannel2ReloadValue = 65536; /* Set beep data */ - BeepSetParameters.Frequency = (PIT_BASE_FREQUENCY / PitChannel2ReloadValue) * - (PitChannel2->Mode == PIT_MODE_SQUARE_WAVE ? 2 : 1); + BeepSetParameters.Frequency = (PIT_BASE_FREQUENCY / PitChannel2ReloadValue) + /* * (PitChannel2->Mode == PIT_MODE_SQUARE_WAVE ? 2 : 1) */; BeepSetParameters.Duration = INFINITE; /* Send the beep */