[Scummvm-git-logs] scummvm master -> c4ff38654f1b6a52c353fc729d1de33e2e367053

fracturehill noreply at scummvm.org
Sat Jun 3 16:07:43 UTC 2023


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

Summary:
c4ff38654f GOB: Fix Ween: The Prophecy intro


Commit: c4ff38654f1b6a52c353fc729d1de33e2e367053
    https://github.com/scummvm/scummvm/commit/c4ff38654f1b6a52c353fc729d1de33e2e367053
Author: Kaloyan Chehlarski (strahy at outlook.com)
Date: 2023-06-03T19:07:23+03:00

Commit Message:
GOB: Fix Ween: The Prophecy intro

Fixed an issue introduced by the RateConverter rewrite
which resulted in one-shot sounds replaying forever. This
fixes the hanging intro in Ween: The Prophecy.

Changed paths:
    engines/gob/sound/soundmixer.cpp


diff --git a/engines/gob/sound/soundmixer.cpp b/engines/gob/sound/soundmixer.cpp
index dd32264b9e4..cf7bf0f57ef 100644
--- a/engines/gob/sound/soundmixer.cpp
+++ b/engines/gob/sound/soundmixer.cpp
@@ -148,7 +148,8 @@ void SoundMixer::play(SoundDesc &sndDesc, int16 repCount, int16 frequency,
 }
 
 void SoundMixer::checkEndSample() {
-	if ((_repCount == -1) || (--_repCount > 0)) {
+	if ((_repCount == -1) || (_repCount - 1 > 0)) {
+        --_repCount;
 		_offset = 0;
 		_offsetFrac = 0;
 		_end = false;




More information about the Scummvm-git-logs mailing list