diff options
Diffstat (limited to 'engines/sword1/animation.cpp')
-rw-r--r-- | engines/sword1/animation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp index 706bee4b92..b3c90e3204 100644 --- a/engines/sword1/animation.cpp +++ b/engines/sword1/animation.cpp @@ -259,7 +259,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; } |