Isle
Loading...
Searching...
No Matches
legoloadcachesoundpresenter.h
Go to the documentation of this file.
1#ifndef LEGOLOADCACHESOUNDPRESENTER_H
2#define LEGOLOADCACHESOUNDPRESENTER_H
3
4#include "decomp.h"
5#include "mxwavepresenter.h"
6
8
9// VTABLE: LEGO1 0x100d5fa8
10// SIZE 0x90
17public:
22
27
32 static const char* HandlerClassName()
33 {
34 // STRING: LEGO1 0x100f05a0
35 return "LegoLoadCacheSoundPresenter";
36 }
37
42 const char* ClassName() const override // vtable+0x0c
43 {
44 return HandlerClassName();
45 }
46
51 void ReadyTickle() override;
52
57 void StreamingTickle() override;
58
63 void DoneTickle() override;
64
69 MxResult PutData() override;
70
71private:
75 void Init();
76
81 void Destroy(MxBool p_fromDestructor);
82
83 LegoCacheSound* m_cacheSound;
84 MxU8* m_data;
85 MxU8* m_pData;
86 MxU32 m_dataSize;
87 MxBool m_unk0x7c;
88 PCMWAVEFORMAT m_pcmWaveFormat;
89};
90
91// SYNTHETIC: LEGO1 0x10018460
92// LegoLoadCacheSoundPresenter::`scalar deleting destructor'
93
94#endif // LEGOLOADCACHESOUNDPRESENTER_H
Sound cache object managing DirectSound buffers and 3D positioning for preloaded sound data.
Definition: legocachsound.h:17
Derived presenter class used for loading and creating cached sound objects from streamed audio data.
~LegoLoadCacheSoundPresenter() override
Destructor.
const char * ClassName() const override
Returns the runtime class name for this presenter.
LegoLoadCacheSoundPresenter()
Default constructor.
void DoneTickle() override
Called when the presenter enters the DoneTickle state.
void ReadyTickle() override
Called when the presenter enters the ReadyTickle state.
static const char * HandlerClassName()
Returns the static class handler name used for presenter type dispatching.
MxResult PutData() override
Called to commit prepared data to the cache manager.
void StreamingTickle() override
Called during the StreamingTickle state.
[AI] Presenter for streaming and managing PCM waveform audio via DirectSound buffer.
void Destroy() override
[AI] Explicit resource release.
#define override
Definition: compat.h:21
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
MxLong MxResult
[AI]
Definition: mxtypes.h:106
unsigned char MxU8
[AI]
Definition: mxtypes.h:8
unsigned int MxU32
[AI]
Definition: mxtypes.h:32