[Scummvm-cvs-logs] SF.net SVN: scummvm:[35165] scummvm/trunk/engines/groovie

spookypeanut at users.sourceforge.net spookypeanut at users.sourceforge.net
Mon Nov 24 22:48:40 CET 2008


Revision: 35165
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35165&view=rev
Author:   spookypeanut
Date:     2008-11-24 21:48:40 +0000 (Mon, 24 Nov 2008)

Log Message:
-----------
T7G: Add a debug level to play movies fast with no pcm sound (unstable)

Modified Paths:
--------------
    scummvm/trunk/engines/groovie/groovie.cpp
    scummvm/trunk/engines/groovie/groovie.h
    scummvm/trunk/engines/groovie/vdx.cpp

Modified: scummvm/trunk/engines/groovie/groovie.cpp
===================================================================
--- scummvm/trunk/engines/groovie/groovie.cpp	2008-11-24 21:22:24 UTC (rev 35164)
+++ scummvm/trunk/engines/groovie/groovie.cpp	2008-11-24 21:48:40 UTC (rev 35165)
@@ -55,6 +55,7 @@
 	Common::addSpecialDebugLevel(kGroovieDebugMIDI, "MIDI", "Debug MIDI / XMIDI files");
 	Common::addSpecialDebugLevel(kGroovieDebugScriptvars, "Scriptvars", "Print out any change to script variables");
 	Common::addSpecialDebugLevel(kGroovieDebugCell, "Cell", "Debug the cell game (in the microscope)");
+	Common::addSpecialDebugLevel(kGroovieDebugFast, "Fast", "Play videos quickly, with no sound (unstable)");
 }
 
 GroovieEngine::~GroovieEngine() {

Modified: scummvm/trunk/engines/groovie/groovie.h
===================================================================
--- scummvm/trunk/engines/groovie/groovie.h	2008-11-24 21:22:24 UTC (rev 35164)
+++ scummvm/trunk/engines/groovie/groovie.h	2008-11-24 21:48:40 UTC (rev 35165)
@@ -51,7 +51,8 @@
 	kGroovieDebugCursor = 1 << 6,
 	kGroovieDebugMIDI = 1 << 7,
 	kGroovieDebugScriptvars = 1 << 8,
-	kGroovieDebugCell = 1 << 9
+	kGroovieDebugCell = 1 << 9,
+	kGroovieDebugFast = 1 << 10
 		// the current limitation is 32 debug levels (1 << 31 is the last one)
 };
 

Modified: scummvm/trunk/engines/groovie/vdx.cpp
===================================================================
--- scummvm/trunk/engines/groovie/vdx.cpp	2008-11-24 21:22:24 UTC (rev 35164)
+++ scummvm/trunk/engines/groovie/vdx.cpp	2008-11-24 21:48:40 UTC (rev 35165)
@@ -161,8 +161,10 @@
 	}
 
 	// Wait until the current frame can be shown
-	waitFrame();
-
+	
+	if (!(Common::getEnabledSpecialDebugLevels() & kGroovieDebugFast)) {
+		waitFrame();
+	}
 	// TODO: Move it to a better place
 	// Update the screen
 	if (currRes == 0x25) {
@@ -486,7 +488,9 @@
 
 	byte *data = new byte[60000];
 	int chunksize = in->read(data, 60000);
-	_audioStream->queueBuffer(data, chunksize);
+	if (!(Common::getEnabledSpecialDebugLevels() & kGroovieDebugFast)) {
+		_audioStream->queueBuffer(data, chunksize);
+	}
 }
 
 void VDXPlayer::fadeIn(uint8 *targetpal) {


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