mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
[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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user