2023-06-29 04:10:08 -04:00
|
|
|
#include "legosoundmanager.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-10-22 09:48:20 -04:00
|
|
|
#include "mxautolocker.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100298a0
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoSoundManager::LegoSoundManager()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
Init();
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10029940
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoSoundManager::~LegoSoundManager()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
Destroy(TRUE);
|
2023-10-22 09:48:20 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100299a0
|
2023-11-21 03:44:45 -05:00
|
|
|
void LegoSoundManager::Init()
|
2023-10-22 09:48:20 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
unk0x40 = 0;
|
|
|
|
unk0x3c = 0;
|
2023-10-22 09:48:20 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x100299b0
|
2023-10-22 09:48:20 -04:00
|
|
|
void LegoSoundManager::Destroy(MxBool p_fromDestructor)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x100299f0
|
2023-10-22 09:48:20 -04:00
|
|
|
MxResult LegoSoundManager::Create(MxU32 p_frequencyMS, MxBool p_createThread)
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
return FAILURE;
|
2023-10-22 09:48:20 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1002a390
|
2023-11-21 03:44:45 -05:00
|
|
|
void LegoSoundManager::Destroy()
|
2023-10-22 09:48:20 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
Destroy(FALSE);
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1002a3a0
|
2023-09-21 14:51:24 -04:00
|
|
|
MxResult LegoSoundManager::Tickle()
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
MxMediaManager::Tickle();
|
|
|
|
MxAutoLocker lock(&this->m_criticalSection);
|
2023-10-22 09:48:20 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
return 0; // TODO: call something in unk0x40
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|