[Scummvm-cvs-logs] SF.net SVN: scummvm:[38384] scummvm/trunk/engines/sword1/animation.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Mon Feb 16 22:57:22 CET 2009


Revision: 38384
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38384&view=rev
Author:   eriktorbjorn
Date:     2009-02-16 21:57:22 +0000 (Mon, 16 Feb 2009)

Log Message:
-----------
If the DXA cutscene audio fails to play for whatever reason (shouldn't happen in
BS1 since all the cutscenes have an audio track), assume audio and video are in
sync.

Modified Paths:
--------------
    scummvm/trunk/engines/sword1/animation.cpp

Modified: scummvm/trunk/engines/sword1/animation.cpp
===================================================================
--- scummvm/trunk/engines/sword1/animation.cpp	2009-02-16 21:46:02 UTC (rev 38383)
+++ scummvm/trunk/engines/sword1/animation.cpp	2009-02-16 21:57:22 UTC (rev 38384)
@@ -236,6 +236,9 @@
 	if (!_fileStream)
 		return 0;
 
+	if (!_mixer->isSoundHandleActive(*_bgSoundHandle))
+		return 0;
+
 	int32 frameDelay = getFrameDelay();
 	int32 videoTime = _videoInfo.currentFrame * frameDelay;
 	int32 audioTime;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list