metaforce/Runtime/CMoviePlayer.hpp

45 lines
1.2 KiB
C++
Raw Normal View History

2016-02-13 09:02:47 +00:00
#ifndef __PSHAG_CMOVIEPLAYER_HPP__
#define __PSHAG_CMOVIEPLAYER_HPP__
2015-08-27 00:23:46 +00:00
#include "RetroTypes.hpp"
#include "CDvdFile.hpp"
2016-03-04 23:04:53 +00:00
namespace urde
2015-08-27 00:23:46 +00:00
{
class CVector3f;
class CMoviePlayer : public CDvdFile
{
public:
2015-11-21 01:16:07 +00:00
enum class EPlayMode
2015-08-27 00:23:46 +00:00
{
};
CMoviePlayer(const char* path, float startTime, bool flag);
static void VerifyCallbackStatus();
static void DisableStaticAudio();
static void SetStaticAudioVolume(int vol);
static void SetStaticAudio(const void* data, u32 length, u32 loopStart, u32 loopEnd);
void MixAudio(short* out, const short* in, u32 length);
static void MixStaticAudio(short* out, const short* in, u32 length);
static void StaticMyAudioCallback();
void Rewind();
bool GetIsMovieFinishedPlaying() const;
bool GetIsFullyCached() const;
float GetPlayedSeconds() const;
float GetTotalSeconds() const;
void SetPlayMode(EPlayMode);
void DrawFrame(const CVector3f& a, const CVector3f& b, const CVector3f& c, const CVector3f& d);
void Update(float dt);
void DecodeFromRead(const void* data);
void ReadCompleted();
void PostDVDReadRequestIfNeeded();
void InitializeTextures();
};
}
2016-02-13 09:02:47 +00:00
#endif // __PSHAG_CMOVIEPLAYER_HPP__