Isle
Loading...
Searching...
No Matches
mxsoundpresenter.cpp
Go to the documentation of this file.
1#include "mxsoundpresenter.h"
2
3#include "decomp.h"
4#include "mxmisc.h"
5#include "mxsoundmanager.h"
6
8
9// FUNCTION: LEGO1 0x100b1a50
10void MxSoundPresenter::Destroy(MxBool p_fromDestructor)
11{
12 if (MSoundManager()) {
14 }
15
16 m_criticalSection.Enter();
18 m_criticalSection.Leave();
19
20 if (!p_fromDestructor) {
22 }
23}
24
25// FUNCTION: LEGO1 0x100b1aa0
27{
28 MxResult ret = FAILURE;
29
30 if (MSoundManager()) {
31 ret = SUCCESS;
33 }
34
35 return ret;
36}
virtual void RegisterPresenter(MxPresenter &p_presenter)
[AI] Register a new presenter for tickle management and playback coordination.
virtual void UnregisterPresenter(MxPresenter &p_presenter)
[AI] Remove a presenter from tickle and managed output lists.
void Init()
[AI] Initializes all member variables to a known default state (NULL pointers, etc).
void Destroy() override
[AI] Cleans up internal resources and resets the presenter to an uninitialized state.
[AI] Concrete presenter for sound playback and control within the LEGO Island engine.
MxResult AddToManager() override
[AI] Registers this presenter with the global MxSoundManager.
#define FALSE
Definition: d3drmdef.h:27
#define DECOMP_SIZE_ASSERT(T, S)
Definition: decomp.h:19
#define FAILURE
[AI] Used to indicate a failed operation in result codes.
Definition: legotypes.h:34
#define SUCCESS
[AI] Used to indicate a successful operation in result codes.
Definition: legotypes.h:30
MxSoundManager * MSoundManager()
[AI] Returns the global sound manager responsible for sound FX/voice playback.
Definition: mxmisc.cpp:57
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
MxLong MxResult
[AI]
Definition: mxtypes.h:106