diff dmengine.h @ 641:c3852e49a610

Change how audio configuration works.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 15 Apr 2013 09:20:45 +0300
parents b22db2832f3e
children 0888971cbff8
line wrap: on
line diff
--- a/dmengine.h	Mon Apr 15 08:58:02 2013 +0300
+++ b/dmengine.h	Mon Apr 15 09:20:45 2013 +0300
@@ -25,9 +25,20 @@
 
 
 // Video setup type
-#define DM_VSETUP_NONE        0x00  // No video setup, just set window/screen to what demo specifies
-#define DM_VSETUP_ASPECT      0x01  // Only modes that match the optVidAspect aspect ratio are ok
-#define DM_VSETUP_ANY         0x02  // Any available mode is okay, the code can adapt
+enum
+{
+    DM_VSETUP_NONE    = 0x00,  // No video setup, just set window/screen to what demo specifies
+    DM_VSETUP_ASPECT  = 0x01,  // Only modes that match the optVidAspect aspect ratio are ok
+    DM_VSETUP_ANY     = 0x02,  // Any available mode is okay, the code can adapt
+};
+
+// Audio setup type
+enum
+{
+    DM_ASETUP_NONE    = 0,
+    DM_ASETUP_JSS     = 1,
+    DM_ASETUP_TREMOR  = 2,
+};
 
 
 
@@ -225,6 +236,7 @@
     SDL_Surface *screen;
     SDL_Event event;
     SDL_AudioSpec optAfmt;
+    int optAudioSetup;
 
     int optVidWidth, optVidHeight,
         optVidDepth, optVFlags,