aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v6.cpp
diff options
context:
space:
mode:
authorSven Hesse2011-01-24 14:10:15 +0000
committerSven Hesse2011-01-24 14:10:15 +0000
commit9eea8c6bca530e48e8c1725b3829de189f2aec0e (patch)
tree6f28c32134394064f7356779e03966fb5c33ceb5 /engines/gob/inter_v6.cpp
parent6ca13f926d6dbadf423ec71c26a21cfbae0dc5e7 (diff)
downloadscummvm-rg350-9eea8c6bca530e48e8c1725b3829de189f2aec0e.tar.gz
scummvm-rg350-9eea8c6bca530e48e8c1725b3829de189f2aec0e.tar.bz2
scummvm-rg350-9eea8c6bca530e48e8c1725b3829de189f2aec0e.zip
GOB: Wait for the exact moment of the video sound's end
This should fix all cut-off sound issues in Urban Runner svn-id: r55503
Diffstat (limited to 'engines/gob/inter_v6.cpp')
-rw-r--r--engines/gob/inter_v6.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/gob/inter_v6.cpp b/engines/gob/inter_v6.cpp
index 3390ed6e9c..7b7ea06cf7 100644
--- a/engines/gob/inter_v6.cpp
+++ b/engines/gob/inter_v6.cpp
@@ -190,9 +190,8 @@ void Inter_v6::o6_playVmdOrMusic() {
_vm->_vidPlayer->play(slot, props);
if (close && !props.noBlock) {
- if (props.hasSound && !props.canceled)
- _vm->_util->longDelay(500);
-
+ if (!props.canceled)
+ _vm->_vidPlayer->waitSoundEnd(slot);
_vm->_vidPlayer->closeVideo(slot);
}