mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 09:05:06 +01:00
3bc03871fe
-set wiiflow version to beta 4.2.2 -added another memory manager just for wii games and banners -changed THP file playback, for sound you now need to have a ogg file with the same name, that fixes all audio shutters and crashes -optimized THP file playback and JPG extraction alot, it should now work fine with 640x480 30fps without any crash or freeze anymore
42 lines
669 B
C++
42 lines
669 B
C++
#ifndef WII_MOVIE_H_
|
|
#define WII_MOVIE_H_
|
|
|
|
#include "gcvid.h"
|
|
#include "Timer.h"
|
|
#include "texture.hpp"
|
|
|
|
using namespace std;
|
|
|
|
class WiiMovie
|
|
{
|
|
public:
|
|
void Init(const char * filepath);
|
|
void DeInit();
|
|
bool Play(TexData *Background, bool loop = false);
|
|
void Stop();
|
|
bool Continue();
|
|
volatile bool loaded;
|
|
volatile bool rendered;
|
|
protected:
|
|
static void * UpdateThread(void *arg);
|
|
void FrameLoadLoop();
|
|
void ReadNextFrame();
|
|
void LoadNextFrame();
|
|
|
|
u8 * ThreadStack;
|
|
lwp_t ReadThread;
|
|
|
|
ThpVideoFile Video;
|
|
FILE *vFile;
|
|
float fps;
|
|
Timer PlayTime;
|
|
u32 VideoFrameCount;
|
|
TexData *Frame;
|
|
bool Playing;
|
|
bool ExitRequested;
|
|
};
|
|
|
|
extern WiiMovie movie;
|
|
|
|
#endif
|