aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/animation.cpp2
-rw-r--r--graphics/animation.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/graphics/animation.cpp b/graphics/animation.cpp
index 18f294fa08..3ba6179ffd 100644
--- a/graphics/animation.cpp
+++ b/graphics/animation.cpp
@@ -185,7 +185,7 @@ bool BaseAnimationState::decodeFrame() {
*/
/* Avoid deadlock is sound was too far ahead */
- if (_bgSoundStream && !_bgSound.isActive())
+ if (_bgSoundStream && !_snd->isSoundHandleActive(_bgSound))
return false;
if (checkPaletteSwitch() || (_bgSoundStream == NULL) ||
diff --git a/graphics/animation.h b/graphics/animation.h
index 71546746c6..5efb3797d8 100644
--- a/graphics/animation.h
+++ b/graphics/animation.h
@@ -84,7 +84,7 @@ protected:
File *_mpegFile;
- PlayingSoundHandle _bgSound;
+ SoundHandle _bgSound;
AudioStream *_bgSoundStream;
#ifdef BACKEND_8BIT