diff options
author | Filippos Karapetis | 2013-06-12 11:17:41 +0300 |
---|---|---|
committer | Filippos Karapetis | 2013-06-12 11:35:47 +0300 |
commit | 323fe8c45bc9e602c7d8a043210e67811bab9d38 (patch) | |
tree | cfa924e0a0173efbb490114421b463d4f27b083b /engines/neverhood/gamemodule.cpp | |
parent | 9d489e82ce3925150485e5bf50653c81e553bbcb (diff) | |
download | scummvm-rg350-323fe8c45bc9e602c7d8a043210e67811bab9d38.tar.gz scummvm-rg350-323fe8c45bc9e602c7d8a043210e67811bab9d38.tar.bz2 scummvm-rg350-323fe8c45bc9e602c7d8a043210e67811bab9d38.zip |
NEVERHOOD: Stop all sounds before restoring / restarting
This fixes the static heard when loading a saved game to a scene with
music, when the current scene also has music
Diffstat (limited to 'engines/neverhood/gamemodule.cpp')
-rw-r--r-- | engines/neverhood/gamemodule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/neverhood/gamemodule.cpp b/engines/neverhood/gamemodule.cpp index 70450e2918..96e8cc13a6 100644 --- a/engines/neverhood/gamemodule.cpp +++ b/engines/neverhood/gamemodule.cpp @@ -411,6 +411,8 @@ void GameModule::checkRequests() { } if (_restoreGameRequested) { _restoreGameRequested = false; + _vm->_audioResourceMan->stopAllSounds(); + _vm->_soundMan->stopAllSounds(); delete _childObject; delete _prevChildObject; _childObject = NULL; |