From bd34655abb894f37b467aae0fd6b29d360bfdedf Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 20 Jan 2004 13:27:17 +0000 Subject: I assume this fixes CPU usage in synced cutscene playback, but since I don't have said cutscenes I can't really check. (I did the same change for BS2 though.) svn-id: r12537 --- sword1/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sword1') diff --git a/sword1/animation.cpp b/sword1/animation.cpp index 1533dd5e74..e20492ca0d 100644 --- a/sword1/animation.cpp +++ b/sword1/animation.cpp @@ -313,7 +313,7 @@ bool AnimationState::decodeFrame() { _scr->plotYUV(lut, sequence_i->width, sequence_i->height, info->display_fbuf->buf); if (bgSoundStream) { - while ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < framenum+1); + while ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < framenum+1) _sys->delay_msecs(10); } else { ticks += 83; @@ -334,7 +334,7 @@ bool AnimationState::decodeFrame() { plotYUV(lookup2, sequence_i->width, sequence_i->height, info->display_fbuf->buf); if (bgSoundStream) { - while ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < framenum+1); + while ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < framenum+1) _sys->delay_msecs(10); } else { ticks += 83; -- cgit v1.2.3