aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorMatthew Hoops2012-08-18 10:22:54 -0400
committerMatthew Hoops2012-08-18 10:23:19 -0400
commit7af4e403042c9d67c6f00bb151225cee6abc5e0d (patch)
treeffdbe77da5e0291ee28da6757dd8db1d1b760276 /engines/agos
parentda9695ddc6a46c709753026055d6060746006c2c (diff)
downloadscummvm-rg350-7af4e403042c9d67c6f00bb151225cee6abc5e0d.tar.gz
scummvm-rg350-7af4e403042c9d67c6f00bb151225cee6abc5e0d.tar.bz2
scummvm-rg350-7af4e403042c9d67c6f00bb151225cee6abc5e0d.zip
AGOS: Fix regression with sound in Smacker OmniTV videos
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/animation.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/agos/animation.cpp b/engines/agos/animation.cpp
index cf12ee120a..9176412e0e 100644
--- a/engines/agos/animation.cpp
+++ b/engines/agos/animation.cpp
@@ -293,8 +293,6 @@ void MoviePlayerDXA::playVideo() {
_vm->clearSurfaces();
}
- start();
-
while (!endOfVideo() && !_skipMovie && !_vm->shouldQuit())
handleNextFrame();
}
@@ -305,6 +303,8 @@ void MoviePlayerDXA::stopVideo() {
}
void MoviePlayerDXA::startSound() {
+ start();
+
if (_bgSoundStream != NULL) {
_vm->_mixer->stopHandle(_bgSound);
_vm->_mixer->playStream(Audio::Mixer::kSFXSoundType, &_bgSound, _bgSoundStream, -1, getVolume(), getBalance());
@@ -457,8 +457,6 @@ void MoviePlayerSMK::copyFrameToBuffer(byte *dst, uint x, uint y, uint pitch) {
}
void MoviePlayerSMK::playVideo() {
- start();
-
while (!endOfVideo() && !_skipMovie && !_vm->shouldQuit())
handleNextFrame();
}
@@ -468,6 +466,7 @@ void MoviePlayerSMK::stopVideo() {
}
void MoviePlayerSMK::startSound() {
+ start();
}
void MoviePlayerSMK::handleNextFrame() {