[Scummvm-git-logs] scummvm master -> 777a681937aea343f5fd8e6c5f332a7fbebfae40

fracturehill noreply at scummvm.org
Sat Jun 3 16:20:04 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:
777a681937 GOB: Properly fix Ween: The Prophecy intro


Commit: 777a681937aea343f5fd8e6c5f332a7fbebfae40
    https://github.com/scummvm/scummvm/commit/777a681937aea343f5fd8e6c5f332a7fbebfae40
Author: Kaloyan Chehlarski (strahy at outlook.com)
Date: 2023-06-03T19:19:05+03:00

Commit Message:
GOB: Properly fix Ween: The Prophecy intro

Fixed the "fix" in the last commit so it no longer breaks looping sounds.

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


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




More information about the Scummvm-git-logs mailing list