[Scummvm-git-logs] scummvm master -> ce14eaa4b81a11bd1b6c60bd973270769d000429
dreammaster
noreply at scummvm.org
Sun Sep 14 22:05:34 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:
ce14eaa4b8 BAGEL: Fix looping music
Commit: ce14eaa4b81a11bd1b6c60bd973270769d000429
https://github.com/scummvm/scummvm/commit/ce14eaa4b81a11bd1b6c60bd973270769d000429
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-09-14T15:05:16-07:00
Commit Message:
BAGEL: Fix looping music
Changed paths:
engines/bagel/boflib/sound.cpp
diff --git a/engines/bagel/boflib/sound.cpp b/engines/bagel/boflib/sound.cpp
index 01f8873bdcf..5d3803f4536 100644
--- a/engines/bagel/boflib/sound.cpp
+++ b/engines/bagel/boflib/sound.cpp
@@ -276,6 +276,8 @@ bool CBofSound::play(uint32 dwBeginHere, uint32 TimeFormatFlag) {
}
if (_wFlags & SOUND_MIDI) {
+ if (_wFlags & SOUND_LOOP)
+ _wLoops = 0;
g_engine->_midi->play(this);
_bPlaying = true;
@@ -326,6 +328,7 @@ bool CBofSound::midiLoopPlaySegment(uint32 dwLoopFrom, uint32 dwLoopTo, uint32 d
assert(isValidObject(this));
_wFlags |= SOUND_LOOP;
+ _wLoops = 0;
_dwRePlayStart = dwLoopFrom;
_dwRePlayEnd = dwLoopTo;
_bExtensionsUsed = true;
More information about the Scummvm-git-logs
mailing list