implement most of MxBackgroundAudioManager (#232)

* implement most of MxBackgroundAudioManager

* Match OpenMusic to 100%, style fixes

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Misha
2023-10-22 10:11:46 -04:00
committed by GitHub
parent 50fe5f9c83
commit 681ab9c026
6 changed files with 85 additions and 10 deletions

View File

@@ -11,6 +11,9 @@
// 0x100f4588
MxAtomId *g_nocdSourceName = NULL;
// 0x100f456c
MxAtomId *g_jukeboxScript = NULL;
// 0x101020e8
void (*g_omniUserMessage)(const char *,int);
@@ -26,10 +29,11 @@ LegoOmni::~LegoOmni()
Destroy();
}
// OFFSET: LEGO1 0x1005b560 STUB
// OFFSET: LEGO1 0x1005b560
void LegoOmni::CreateBackgroundAudio()
{
// TODO
if (m_bkgAudioManager)
m_bkgAudioManager->Create(*g_jukeboxScript, 100);
}
// OFFSET: LEGO1 0x1005af10 STUB
@@ -308,9 +312,10 @@ MxResult LegoOmni::Start(MxDSAction* action)
return result;
}
void LegoOmni::DeleteObject(MxDSAction &ds)
MxResult LegoOmni::DeleteObject(MxDSAction &ds)
{
// FIXME: Stub
return FAILURE;
}
MxBool LegoOmni::DoesEntityExist(MxDSAction &ds)