Author: hbelusca
Date: Tue Sep 23 21:04:05 2014
New Revision: 64251
URL:
http://svn.reactos.org/svn/reactos?rev=64251&view=rev
Log:
[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.
Modified:
trunk/reactos/subsystems/ntvdm/hardware/speaker.c
Modified: trunk/reactos/subsystems/ntvdm/hardware/speaker.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/hardware/…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/hardware/speaker.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/hardware/speaker.c [iso-8859-1] Tue Sep 23 21:04:05
2014
@@ -48,8 +48,8 @@
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 */