diff dmsimple.h @ 93:15fdd5573344

Add simple (and buggy / not really working) debug mode.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Oct 2012 18:13:05 +0300
parents d1a6833a5d67
children 4bbfc0274b29
line wrap: on
line diff
--- a/dmsimple.h	Tue Oct 02 18:12:07 2012 +0300
+++ b/dmsimple.h	Tue Oct 02 18:13:05 2012 +0300
@@ -14,8 +14,10 @@
 
 typedef struct
 {
-    int currFrame, endTime, startTime, totalFrameTime, debugTime;
-    BOOL pauseFlag, exitFlag;
+    int currFrame, endTime, startTime,
+        totalFrameTime, adjustTime, pauseTime;
+
+    BOOL pauseFlag, paused, exitFlag;
     SDL_Surface *screen;
     SDL_Event event;
 
@@ -24,6 +26,13 @@
     JSSMixer *dev;
     JSSPlayer *plr;
 
+#ifdef DM_DEBUG
+    BOOL optDebug;
+    Uint8 *audioBuf;
+    int audioBufSize;
+    int audioSamples;
+    int demoDuration;
+#endif
 } DMEngineData;