changeset 2079:ba5cd8a8a0d3

smacker flags
author Gloval
date Thu, 05 Dec 2013 23:31:48 +0400
parents 66cbc97b31fa
children c15871e2d743 c041779ff4fe
files Bink_Smacker.h VideoPlayer.cpp
diffstat 2 files changed, 19 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Bink_Smacker.h	Wed Dec 04 23:35:44 2013 +0400
+++ b/Bink_Smacker.h	Thu Dec 05 23:31:48 2013 +0400
@@ -144,6 +144,23 @@
         HDC lastdc;
 };
 
+#define SMACKNEEDPAN    0x00020L // Will be setting the pan
+#define SMACKNEEDVOLUME 0x00040L // Will be setting the volume
+#define SMACKFRAMERATE  0x00080L // Override fr (call SmackFrameRate first)
+#define SMACKLOADEXTRA  0x00100L // Load the extra buffer during SmackOpen
+#define SMACKPRELOADALL 0x00200L // Preload the entire animation
+#define SMACKNOSKIP     0x00400L // Don't skip frames if falling behind
+#define SMACKSIMULATE   0x00800L // Simulate the speed (call SmackSim first)
+#define SMACKFILEHANDLE 0x01000L // Use when passing in a file handle
+#define SMACKTRACK1     0x02000L // Play audio track 1
+#define SMACKTRACK2     0x04000L // Play audio track 2
+#define SMACKTRACK3     0x08000L // Play audio track 3
+#define SMACKTRACK4     0x10000L // Play audio track 4
+#define SMACKTRACK5     0x20000L // Play audio track 5
+#define SMACKTRACK6     0x40000L // Play audio track 6
+#define SMACKTRACK7     0x80000L // Play audio track 7
+
+
 #define SMACKBUFFER555      0x80000000
 #define SMACKBUFFER565      0xC0000000
 
--- a/VideoPlayer.cpp	Wed Dec 04 23:35:44 2013 +0400
+++ b/VideoPlayer.cpp	Thu Dec 05 23:31:48 2013 +0400
@@ -939,7 +939,7 @@
       if ( !_stricmp(this->pMightVideoHeaders[i].pVideoName, pFilename) )
       {
         SetFilePointer(this->hMightVid, this->pMightVideoHeaders[i].uFileOffset, 0, 0);
-        return SmackOpen(this->hMightVid, 0x7140, -1);
+        return SmackOpen(this->hMightVid, SMACKTRACK2|SMACKTRACK1|SMACKFILEHANDLE|SMACKLOADEXTRA|SMACKNEEDVOLUME -1);//0x7140,
       }
     }
   }
@@ -950,7 +950,7 @@
       if ( !_stricmp(this->pMagicVideoHeaders[i].pVideoName, pFilename) )
       {
         SetFilePointer(this->hMagicVid, this->pMagicVideoHeaders[i].uFileOffset, 0, 0);
-        return SmackOpen(this->hMagicVid, 0x7140, -1);
+        return SmackOpen(this->hMagicVid, SMACKTRACK2|SMACKTRACK1|SMACKFILEHANDLE|SMACKLOADEXTRA|SMACKNEEDVOLUME, -1);
       }
     }
   }