mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-29 19:05:34 -05:00
34e09c2bb3
* Rename MxMusicPresenter function vtable38 * Rename MxMusicPresenter function vtable38 * MxMediaPresenter, MxMusicManager and MxMusicPresenter * Refactoring Destroy functions * MxMediaManager & MxMusicPresenter * Fix some vtable declarations, more renames * Fix MxEventManager * More rename fixes --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
68 lines
1.1 KiB
C++
68 lines
1.1 KiB
C++
#include "mxsoundmanager.h"
|
|
#include "mxticklemanager.h"
|
|
#include "mxomni.h"
|
|
|
|
DECOMP_SIZE_ASSERT(MxSoundManager, 0x3c);
|
|
|
|
// OFFSET: LEGO1 0x100ae740
|
|
MxSoundManager::MxSoundManager()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100ae7d0
|
|
MxSoundManager::~MxSoundManager()
|
|
{
|
|
Destroy(TRUE);
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100ae830
|
|
void MxSoundManager::Init()
|
|
{
|
|
m_unk30 = 0;
|
|
m_dsBuffer = NULL;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100ae840
|
|
void MxSoundManager::Destroy(MxBool p_fromDestructor)
|
|
{
|
|
if (this->m_thread) {
|
|
this->m_thread->Terminate();
|
|
delete this->m_thread;
|
|
}
|
|
else {
|
|
TickleManager()->UnregisterClient(this);
|
|
}
|
|
|
|
this->m_criticalSection.Enter();
|
|
|
|
if (this->m_dsBuffer) {
|
|
this->m_dsBuffer->Release();
|
|
}
|
|
|
|
Init();
|
|
this->m_criticalSection.Leave();
|
|
|
|
if (!p_fromDestructor) {
|
|
MxAudioManager::Destroy();
|
|
}
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100ae8b0 STUB
|
|
MxResult MxSoundManager::StartDirectSound(undefined4 p_unknown1, MxBool p_unknown2)
|
|
{
|
|
// TODO STUB
|
|
return FAILURE;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100aed10 STUB
|
|
void MxSoundManager::vtable0x34()
|
|
{
|
|
// TODO STUB
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100aee10 STUB
|
|
void MxSoundManager::vtable0x38()
|
|
{
|
|
// TODO STUB
|
|
}
|