[Scummvm-git-logs] scummvm master -> 903f362f85a181f021b8c1ea330422e872e17b79
dreammaster
dreammaster at scummvm.org
Sun Apr 4 02:13:52 UTC 2021
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:
903f362f85 AGS: Fix resuming music after savegames are loaded
Commit: 903f362f85a181f021b8c1ea330422e872e17b79
https://github.com/scummvm/scummvm/commit/903f362f85a181f021b8c1ea330422e872e17b79
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-04-03T19:13:42-07:00
Commit Message:
AGS: Fix resuming music after savegames are loaded
Changed paths:
engines/ags/engine/media/audio/soundclip.cpp
diff --git a/engines/ags/engine/media/audio/soundclip.cpp b/engines/ags/engine/media/audio/soundclip.cpp
index d097f01b13..d688758a12 100644
--- a/engines/ags/engine/media/audio/soundclip.cpp
+++ b/engines/ags/engine/media/audio/soundclip.cpp
@@ -67,12 +67,16 @@ int SoundClipWaveBase::play() {
}
int SoundClipWaveBase::play_from(int position) {
- // TODO: Implement playing from arbitrary positions
if (position == 0) {
play();
return 1;
} else {
- return 0;
+ // TODO: Implement playing from arbitrary positions. This is
+ // used when restoring savegames to resume the music at the
+ // point the savegame was made. For now, since ScummVM doesn't
+ // have seek for audio streams, we'll restart from the beginning
+ play();
+ return 1;
}
}
More information about the Scummvm-git-logs
mailing list