aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2017-10-14 21:59:20 -0400
committerPaul Gilbert2017-10-14 21:59:20 -0400
commit2d25ce2e5af321e68d616b568795abfdcc9130ce (patch)
treeea947b3a0a0b227c747fbb3e2361f3f81de24929 /engines/titanic
parent23a6533c95d8ca80677113df68c678e23dda1311 (diff)
downloadscummvm-rg350-2d25ce2e5af321e68d616b568795abfdcc9130ce.tar.gz
scummvm-rg350-2d25ce2e5af321e68d616b568795abfdcc9130ce.tar.bz2
scummvm-rg350-2d25ce2e5af321e68d616b568795abfdcc9130ce.zip
TITANIC: Stop final piano note of music room music getting cut off
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/sound/music_room_handler.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/titanic/sound/music_room_handler.cpp b/engines/titanic/sound/music_room_handler.cpp
index b7d6ea189e..3b6645904b 100644
--- a/engines/titanic/sound/music_room_handler.cpp
+++ b/engines/titanic/sound/music_room_handler.cpp
@@ -195,10 +195,12 @@ bool CMusicRoomHandler::update() {
_soundStartTicks = currentTicks;
}
- updateAudio();
- updateInstruments();
+ if (_instrumentsActive > 0) {
+ updateAudio();
+ updateInstruments();
+ }
- return _instrumentsActive > 0;
+ return !_audioBuffer->isFinished();
}
void CMusicRoomHandler::updateAudio() {