diff options
author | Paul Gilbert | 2017-10-14 21:59:20 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-10-14 21:59:20 -0400 |
commit | 2d25ce2e5af321e68d616b568795abfdcc9130ce (patch) | |
tree | ea947b3a0a0b227c747fbb3e2361f3f81de24929 /engines/titanic | |
parent | 23a6533c95d8ca80677113df68c678e23dda1311 (diff) | |
download | scummvm-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.cpp | 8 |
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() { |