2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXMEDIAPRESENTER_H
|
|
|
|
#define MXMEDIAPRESENTER_H
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
#include "decomp.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "mxpresenter.h"
|
2023-11-12 07:47:01 -05:00
|
|
|
#include "mxstreamchunklist.h"
|
2023-07-02 03:00:28 -04:00
|
|
|
|
2024-05-03 12:19:12 -04:00
|
|
|
class MxDSSubscriber;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d4cd8
|
2023-11-12 07:47:01 -05:00
|
|
|
// SIZE 0x50
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxMediaPresenter : public MxPresenter {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
inline MxMediaPresenter() { Init(); }
|
2024-01-11 10:02:55 -05:00
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000c550
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxMediaPresenter() override { Destroy(TRUE); }
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxResult Tickle() override; // vtable+0x08
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: BETA10 0x10054f50
|
|
|
|
static const char* HandlerClassName()
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f074c
|
2023-10-24 19:38:27 -04:00
|
|
|
return "MxMediaPresenter";
|
|
|
|
}
|
|
|
|
|
2024-05-30 13:10:41 -04:00
|
|
|
// FUNCTION: LEGO1 0x1000c5c0
|
|
|
|
// FUNCTION: BETA10 0x10054f20
|
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
return HandlerClassName();
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000c5d0
|
2024-02-01 15:42:10 -05:00
|
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, MxMediaPresenter::ClassName()) || MxPresenter::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
void StreamingTickle() override; // vtable+0x20
|
|
|
|
void RepeatingTickle() override; // vtable+0x24
|
|
|
|
void DoneTickle() override; // vtable+0x2c
|
2024-01-11 10:02:55 -05:00
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000c5b0
|
2024-02-01 15:42:10 -05:00
|
|
|
void Destroy() override { Destroy(FALSE); } // vtable+0x38
|
2024-01-11 10:02:55 -05:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxResult StartAction(MxStreamController*, MxDSAction*) override; // vtable+0x3c
|
|
|
|
void EndAction() override; // vtable+0x40
|
|
|
|
void Enable(MxBool p_enable) override; // vtable+0x54
|
|
|
|
virtual void LoopChunk(MxStreamChunk* p_chunk); // vtable+0x58
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2024-03-09 10:49:13 -05:00
|
|
|
MxStreamChunk* CurrentChunk();
|
|
|
|
MxStreamChunk* NextChunk();
|
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1000c680
|
|
|
|
// MxMediaPresenter::`scalar deleting destructor'
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
protected:
|
2024-01-08 13:07:13 -05:00
|
|
|
MxDSSubscriber* m_subscriber; // 0x40
|
|
|
|
MxStreamChunkList* m_loopingChunks; // 0x44
|
|
|
|
MxStreamChunkListCursor* m_loopingChunkCursor; // 0x48
|
|
|
|
MxStreamChunk* m_currentChunk; // 0x4c
|
2023-11-12 07:47:01 -05:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
void Init();
|
|
|
|
void Destroy(MxBool p_fromDestructor);
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2023-12-12 14:27:17 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100b46e0
|
|
|
|
// MxStreamChunkListCursor::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x100b4750
|
|
|
|
// MxListCursor<MxStreamChunk *>::~MxListCursor<MxStreamChunk *>
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x100b47a0
|
|
|
|
// MxListCursor<MxStreamChunk *>::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x100b4810
|
|
|
|
// MxStreamChunkListCursor::~MxStreamChunkListCursor
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // MXMEDIAPRESENTER_H
|