diff options
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/animation.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp index c97d04d1d9..2d0d081ef6 100644 --- a/engines/sword1/animation.cpp +++ b/engines/sword1/animation.cpp @@ -144,15 +144,7 @@ bool MoviePlayer::load(uint32 id) { break; } - if (_decoder->loadFile(filename)) { - // The DXA animations in the Broken Sword games always use external audio tracks. - if (_decoderType == kVideoDecoderDXA && _decoder->readSoundHeader() != MKID_BE('NULL')) - return false; - } else { - return false; - } - - return true; + return _decoder->loadFile(filename); } void MoviePlayer::play(void) { @@ -244,7 +236,7 @@ int32 DXADecoderWithSound::getAudioLag() { int32 videoTime = _videoInfo.currentFrame * frameDelay; int32 audioTime; - audioTime = (int32) _mixer->getSoundElapsedTime(*_bgSoundHandle); + audioTime = (((int32) _mixer->getSoundElapsedTime(*_bgSoundHandle)) * 100); return videoTime - audioTime; } |