[Scummvm-git-logs] scummvm master -> 9439e49e70c72f03d674a2ff4c3e2f3ee10dabf7

neuromancer noreply at scummvm.org
Tue Nov 18 08:46:17 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
9439e49e70 FREESCAPE: avoid freq == 0 for silence pc speaker commmand


Commit: 9439e49e70c72f03d674a2ff4c3e2f3ee10dabf7
    https://github.com/scummvm/scummvm/commit/9439e49e70c72f03d674a2ff4c3e2f3ee10dabf7
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2025-11-18T09:45:55+01:00

Commit Message:
FREESCAPE: avoid freq == 0 for silence pc speaker commmand

Changed paths:
    engines/freescape/sound.cpp


diff --git a/engines/freescape/sound.cpp b/engines/freescape/sound.cpp
index f7f9bf24083..e03642c436c 100644
--- a/engines/freescape/sound.cpp
+++ b/engines/freescape/sound.cpp
@@ -508,13 +508,13 @@ void FreescapeEngine::playSoundZX(Common::Array<soundUnitZX> *data, Audio::Sound
 		if (value.isRaw) {
 			debugC(1, kFreescapeDebugMedia, "raw hz: %f, duration: %d", value.rawFreq, value.rawLengthus);
 			if (value.rawFreq == 0) {
-				_speaker->playQueue(Audio::PCSpeaker::kWaveFormSilence, 0, 5 * value.rawLengthus);
+				_speaker->playQueue(Audio::PCSpeaker::kWaveFormSilence, 1, 5 * value.rawLengthus);
 				continue;
 			}
 			_speaker->playQueue(Audio::PCSpeaker::kWaveFormSquare, value.rawFreq, 5 * value.rawLengthus);
 		} else {
 			if (value.freqTimesSeconds == 0 && value.tStates == 0) {
-				_speaker->playQueue(Audio::PCSpeaker::kWaveFormSilence, 0, 1000 * value.multiplier);
+				_speaker->playQueue(Audio::PCSpeaker::kWaveFormSilence, 1, 1000 * value.multiplier);
 				continue;
 			}
 




More information about the Scummvm-git-logs mailing list