isle-portable/LEGO1/legosoundmanager.cpp

49 lines
818 B
C++
Raw Normal View History

#include "legosoundmanager.h"
2023-10-24 19:38:27 -04:00
#include "mxautolocker.h"
// OFFSET: LEGO1 0x100298a0
LegoSoundManager::LegoSoundManager()
{
2023-10-24 19:38:27 -04:00
Init();
}
// OFFSET: LEGO1 0x10029940
LegoSoundManager::~LegoSoundManager()
{
2023-10-24 19:38:27 -04:00
Destroy(TRUE);
}
// OFFSET: LEGO1 0x1002a390
void LegoSoundManager::Destroy()
{
2023-10-24 19:38:27 -04:00
Destroy(FALSE);
}
// OFFSET: LEGO1 0x100299b0 STUB
void LegoSoundManager::Destroy(MxBool p_fromDestructor)
{
}
// OFFSET: LEGO1 0x100299f0 STUB
MxResult LegoSoundManager::Create(MxU32 p_frequencyMS, MxBool p_createThread)
{
2023-10-24 19:38:27 -04:00
return FAILURE;
}
// OFFSET: LEGO1 0x100299a0
void LegoSoundManager::Init()
{
2023-10-24 19:38:27 -04:00
unk0x40 = 0;
unk0x3c = 0;
}
// OFFSET: LEGO1 0x1002a3a0 STUB
MxResult LegoSoundManager::Tickle()
{
2023-10-24 19:38:27 -04:00
MxMediaManager::Tickle();
MxAutoLocker lock(&this->m_criticalSection);
2023-10-24 19:38:27 -04:00
return 0; // TODO: call something in unk0x40
}