[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
This commit is contained in:
Hermès Bélusca-Maïto
2014-09-23 21:04:05 +00:00
parent 21c81c46ea
commit 6df07b4af3
+2 -2
View File
@@ -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 */