diff options
Diffstat (limited to 'engines/sword2')
-rw-r--r-- | engines/sword2/animation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp index 2c4b9e0d98..3429ab8683 100644 --- a/engines/sword2/animation.cpp +++ b/engines/sword2/animation.cpp @@ -287,7 +287,8 @@ int32 DXADecoderWithSound::getAudioLag() { int32 videoTime = _videoInfo.currentFrame * frameDelay; int32 audioTime; - audioTime = (((int32) _mixer->getSoundElapsedTime(*_bgSoundHandle)) * 100); + const Audio::Timestamp ts = _mixer->getElapsedTime(*_bgSoundHandle); + audioTime = ts.convertToFramerate(100000).totalNumberOfFrames(); return videoTime - audioTime; } |