From ba74a8e7f657cf795046a5cf6a7ead701fd4194e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 27 Nov 2004 15:58:18 +0000 Subject: Added some more mixer doxygen docs; cleaned up Mixer API a bit, removing some very specialised methods svn-id: r15914 --- graphics/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics') diff --git a/graphics/animation.cpp b/graphics/animation.cpp index 42ac082ab9..2ce89fc838 100644 --- a/graphics/animation.cpp +++ b/graphics/animation.cpp @@ -174,7 +174,7 @@ bool BaseAnimationState::decodeFrame() { return false; if (checkPaletteSwitch() || (bgSoundStream == NULL) || - ((_snd->getChannelElapsedTime(bgSound) * 12) / 1000 < framenum + 1) || + ((_snd->getSoundElapsedTime(bgSound) * 12) / 1000 < framenum + 1) || frameskipped > 10) { if (frameskipped > 10) { warning("force frame %i redraw", framenum); @@ -183,7 +183,7 @@ bool BaseAnimationState::decodeFrame() { drawYUV(sequence_i->width, sequence_i->height, info->display_fbuf->buf); if (bgSoundStream) { - while ((_snd->getChannelElapsedTime(bgSound) * 12) / 1000 < framenum) + while ((_snd->getSoundElapsedTime(bgSound) * 12) / 1000 < framenum) _sys->delayMillis(10); } else { ticks += 83; -- cgit v1.2.3