[Scummvm-git-logs] scummvm master -> 9c479c002d49c2f442aeca9c65e115d362b55d5a
aquadran
noreply at scummvm.org
Wed Jun 11 12:29:46 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:
9c479c002d WINTERMUTE: Implemented seek audio stream
Commit: 9c479c002d49c2f442aeca9c65e115d362b55d5a
https://github.com/scummvm/scummvm/commit/9c479c002d49c2f442aeca9c65e115d362b55d5a
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2025-06-11T14:29:41+02:00
Commit Message:
WINTERMUTE: Implemented seek audio stream
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 70fa708600d..e185350d4a7 100644
--- a/engines/wintermute/base/sound/base_sound_buffer.cpp
+++ b/engines/wintermute/base/sound/base_sound_buffer.cpp
@@ -264,8 +264,12 @@ uint32 BaseSoundBuffer::getPosition() {
//////////////////////////////////////////////////////////////////////////
bool BaseSoundBuffer::setPosition(uint32 pos) {
- if (isPlaying()) {
- warning("BaseSoundBuffer::SetPosition - not implemented for playing sounds yet.");
+ if (_stream) {
+ _stream->seek(pos);
+ } else {
+ if (isPlaying()) {
+ warning("BaseSoundBuffer::SetPosition - not implemented for playing sounds yet.");
+ }
}
_startPos = pos;
return STATUS_OK;
More information about the Scummvm-git-logs
mailing list