mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
MADE: Pause MIDI music when pausing engine
The MIDI music on external softsynths and devices would keep playing while the engine was paused. This commit fixes this by implementing the Engine::pauseEngineIntern method to pause the MIDI music when the engine is paused.
This commit is contained in:
parent
2d5e8dbee6
commit
0a702a6e3f
@ -310,4 +310,16 @@ Common::Error MadeEngine::run() {
|
||||
return Common::kNoError;
|
||||
}
|
||||
|
||||
void MadeEngine::pauseEngineIntern(bool pause) {
|
||||
Engine::pauseEngineIntern(pause);
|
||||
|
||||
if (pause) {
|
||||
if (_music)
|
||||
_music->pause();
|
||||
} else {
|
||||
if (_music)
|
||||
_music->resume();
|
||||
}
|
||||
}
|
||||
|
||||
} // End of namespace Made
|
||||
|
@ -107,6 +107,8 @@ public:
|
||||
|
||||
void handleEvents();
|
||||
|
||||
protected:
|
||||
void pauseEngineIntern(bool pause);
|
||||
};
|
||||
|
||||
} // End of namespace Made
|
||||
|
Loading…
Reference in New Issue
Block a user