aboutsummaryrefslogtreecommitdiff
path: root/scumm/saveload.cpp
diff options
context:
space:
mode:
authorMax Horn2003-11-29 14:37:47 +0000
committerMax Horn2003-11-29 14:37:47 +0000
commit9cca17b3beb681ac482e96331e7444ae851d1741 (patch)
tree84790a64b715e5dcaf369040d221da0b10d9f7cd /scumm/saveload.cpp
parent747a6347965ca2f3536f3a2eb1d694ae3416983b (diff)
downloadscummvm-rg350-9cca17b3beb681ac482e96331e7444ae851d1741.tar.gz
scummvm-rg350-9cca17b3beb681ac482e96331e7444ae851d1741.tar.bz2
scummvm-rg350-9cca17b3beb681ac482e96331e7444ae851d1741.zip
don't see why we shouldn't just always call Sound::stopAllSounds just before loading... if anybody knows more, if you observe regressions, please document this in the source code (and/or file bug reports)
svn-id: r11426
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r--scumm/saveload.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp
index c9e04a0e5f..f116040574 100644
--- a/scumm/saveload.cpp
+++ b/scumm/saveload.cpp
@@ -125,12 +125,10 @@ bool ScummEngine::loadState(int slot, bool compat, SaveFileManager *mgr) {
memcpy(_saveLoadName, hdr.name, sizeof(hdr.name));
- if (_imuseDigital) {
- _imuseDigital->stopAllSounds();
- }
-
+ _sound->stopAllSounds();
_sound->stopBundleMusic();
_sound->stopCD();
+
_sound->pauseSounds(true);
CHECK_HEAP
@@ -559,10 +557,6 @@ void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) {
int var120Backup;
int var98Backup;
- if (s->isLoading() && (_saveSound || !_saveLoadCompatible)) {
- _sound->stopAllSounds();
- }
-
// Because old savegames won't fill the entire gfxUsageBits[] array,
// clear it here just to be sure it won't hold any unforseen garbage.
if (s->isLoading())