aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2014-01-02 01:53:59 +0200
committerFilippos Karapetis2014-01-02 01:54:36 +0200
commit90e3e812bef2e2acf39978e09c9149023f93020a (patch)
tree00feb31881a69531ab95fd345c5c88b1de982acb /engines
parent34bd3aa749ad01c1e136805605a113c57f5fd4fa (diff)
downloadscummvm-rg350-90e3e812bef2e2acf39978e09c9149023f93020a.tar.gz
scummvm-rg350-90e3e812bef2e2acf39978e09c9149023f93020a.tar.bz2
scummvm-rg350-90e3e812bef2e2acf39978e09c9149023f93020a.zip
NEVERHOOD: Stop background sounds during credits (bug #6475)
Diffstat (limited to 'engines')
-rw-r--r--engines/neverhood/menumodule.cpp2
-rw-r--r--engines/neverhood/neverhood.cpp5
2 files changed, 2 insertions, 5 deletions
diff --git a/engines/neverhood/menumodule.cpp b/engines/neverhood/menumodule.cpp
index cf634d7d42..a8d88a7109 100644
--- a/engines/neverhood/menumodule.cpp
+++ b/engines/neverhood/menumodule.cpp
@@ -412,7 +412,6 @@ CreditsScene::CreditsScene(NeverhoodEngine *vm, Module *parentModule, bool canAb
_ticksTime = _vm->_system->getMillis() + 202100;
- _vm->toggleSoundUpdate(true);
_musicResource = new MusicResource(_vm);
_musicResource->load(0x30812225);
_musicResource->play(0);
@@ -422,7 +421,6 @@ CreditsScene::CreditsScene(NeverhoodEngine *vm, Module *parentModule, bool canAb
CreditsScene::~CreditsScene() {
_musicResource->unload();
delete _musicResource;
- _vm->toggleSoundUpdate(false);
}
void CreditsScene::update() {
diff --git a/engines/neverhood/neverhood.cpp b/engines/neverhood/neverhood.cpp
index b961bccea7..af09624380 100644
--- a/engines/neverhood/neverhood.cpp
+++ b/engines/neverhood/neverhood.cpp
@@ -194,10 +194,9 @@ void NeverhoodEngine::mainLoop() {
nextFrameTime = _screen->getNextFrameTime();
};
- if (_updateSound) {
+ if (_updateSound)
_soundMan->update();
- _audioResourceMan->updateMusic();
- }
+ _audioResourceMan->updateMusic();
_system->updateScreen();
_system->delayMillis(10);