aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1/animation.cpp')
-rw-r--r--engines/sword1/animation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp
index 47997b6810..76e29394e6 100644
--- a/engines/sword1/animation.cpp
+++ b/engines/sword1/animation.cpp
@@ -236,6 +236,9 @@ int32 DXAPlayerWithSound::getAudioLag() {
if (!_fileStream)
return 0;
+ if (!_mixer->isSoundHandleActive(*_bgSoundHandle))
+ return 0;
+
int32 frameDelay = getFrameDelay();
int32 videoTime = _videoInfo.currentFrame * frameDelay;
int32 audioTime;