aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2018-07-08 21:55:09 +0200
committerBastien Bouclet2018-07-08 21:55:09 +0200
commit5dd38b86608ab227a3a38a6c4fbfbb4bad745942 (patch)
tree2ce2fd19a8e759feaa4897428dda6858648d9b35 /engines
parent0114e43cfec551c0f3d0dc81a2ccd6f1eaf43160 (diff)
downloadscummvm-rg350-5dd38b86608ab227a3a38a6c4fbfbb4bad745942.tar.gz
scummvm-rg350-5dd38b86608ab227a3a38a6c4fbfbb4bad745942.tar.bz2
scummvm-rg350-5dd38b86608ab227a3a38a6c4fbfbb4bad745942.zip
MOHAWK: MYST: Play complete audio clip when changing the boiler pressure
Fixes Trac#10607.
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/myst_stacks/myst.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp
index 647676e304..2e70778322 100644
--- a/engines/mohawk/myst_stacks/myst.cpp
+++ b/engines/mohawk/myst_stacks/myst.cpp
@@ -2025,6 +2025,10 @@ void Myst::o_boilerIncreasePressureStop(uint16 var, const ArgumentsArray &args)
_boilerPressureIncreasing = false;
_state.treeLastMoveTime = _vm->getTotalPlayTime();
+ while (_vm->_sound->isEffectPlaying()) {
+ _vm->doFrame();
+ }
+
if (_state.cabinPilotLightLit == 1) {
if (_state.cabinValvePosition > 0)
_vm->_sound->playBackground(8098, 49152);
@@ -2096,6 +2100,10 @@ void Myst::o_boilerDecreasePressureStop(uint16 var, const ArgumentsArray &args)
_boilerPressureDecreasing = false;
_state.treeLastMoveTime = _vm->getTotalPlayTime();
+ while (_vm->_sound->isEffectPlaying()) {
+ _vm->doFrame();
+ }
+
if (_state.cabinPilotLightLit == 1) {
if (_state.cabinValvePosition > 0)
_vm->_sound->playBackground(8098, 49152);