[Scummvm-git-logs] scummvm master -> a2b508c84038f7c7a29f053aa3af6cbaf9a26ae9
aquadran
noreply at scummvm.org
Sun Feb 1 15:39:24 UTC 2026
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:
a2b508c840 WINTERMUTE: Fixed sound sublooping. Sample pos needs to be converted to ms.
Commit: a2b508c84038f7c7a29f053aa3af6cbaf9a26ae9
https://github.com/scummvm/scummvm/commit/a2b508c84038f7c7a29f053aa3af6cbaf9a26ae9
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2026-02-01T16:39:18+01:00
Commit Message:
WINTERMUTE: Fixed sound sublooping. Sample pos needs to be converted to ms.
Changed paths:
engines/wintermute/base/sound/base_sound_buffer.cpp
diff --git a/engines/wintermute/base/sound/base_sound_buffer.cpp b/engines/wintermute/base/sound/base_sound_buffer.cpp
index d54309369ef..e77f06e31eb 100644
--- a/engines/wintermute/base/sound/base_sound_buffer.cpp
+++ b/engines/wintermute/base/sound/base_sound_buffer.cpp
@@ -161,7 +161,7 @@ bool BaseSoundBuffer::play(bool looping, uint32 startSample) {
}
if (_looping) {
if (_loopStart != 0) {
- Audio::AudioStream *loopStream = new Audio::SubLoopingAudioStream(_stream, 0, Audio::Timestamp(_loopStart, _stream->getRate()), _stream->getLength(), DisposeAfterUse::NO);
+ Audio::AudioStream *loopStream = new Audio::SubLoopingAudioStream(_stream, 0, Audio::Timestamp((_loopStart * 1000) / _stream->getRate(), _stream->getRate()), _stream->getLength(), DisposeAfterUse::NO);
g_system->getMixer()->playStream(type, _handle, loopStream, -1, _volume, _pan, DisposeAfterUse::YES);
} else {
Audio::AudioStream *loopStream = new Audio::LoopingAudioStream(_stream, 0, DisposeAfterUse::NO);
More information about the Scummvm-git-logs
mailing list