I was experimenting with dbLoadAnimation yesterday... It was horrible =P
The VC++ Watch window indicated that *szFileName was
actually being imported into the RAM. Is this true or is this something on my computer?
It takes forever to load an AVI animation (it\\\'s 7.3 MB but I waited 10 minutes on the debug screen- something should have happened by then). I tested it with some simple code:
#include \\\"DarkGDK.h\\\"
inline void dbPrint ( const char* v )
{
dbPrint( (char*)v );
}
inline void dbPrint( const unsigned int v )
{
dbPrint( (LONGLONG)v );
}
inline void dbPrint ( const float v )
{
dbPrint( (double)v );
}
inline void dbPrint ( const int v )
{
dbPrint( (LONGLONG)v );
}
void DarkGDK ( void )
{
// Globally set Sync rate and maximum sync rate is 60 fps
dbSyncOn ( );
dbSyncRate ( 120 );
// Load Title Screen Video
dbLoadAnimation ( \\\"logo_vid.avi\\\", 1 );
dbPlayAnimation ( 1 );
// now we come to our main loop, we call LoopGDK so some internal
// work can be carried out by the GDK
while ( LoopGDK ( ) )
{
// here we make a call to update the contents of the screen
dbSync ( );
}
// and now everything is ready to return back to Windows
return;
}
I have the file in the correct location (the source folder that has main.cpp in it). I also tried playing the video from the while loop too. It takes forever.
Last question (I\\\'m sorry I\\\'m asking so many questions): Is there a way I can play the video off the hard drive, or do I have to use a 3rd party lib?
Thx
dbGamer
dbPrint ( "Sig" );