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

@@ -68,9 +68,10 @@ MxResult MxOmni::Start(MxDSAction* p_dsAction)
}
// OFFSET: LEGO1 0x100b00c0 STUB
void MxOmni::DeleteObject(MxDSAction &p_dsAction)
MxResult MxOmni::DeleteObject(MxDSAction &p_dsAction)
{
// TODO
return FAILURE;
}
// OFFSET: LEGO1 0x100b09a0
@@ -231,7 +232,7 @@ MxResult MxOmni::Create(MxOmniCreateParam &p)
}
if (p.CreateFlags().CreateStreamer()) {
if (!(m_streamer = new MxStreamer()) || m_streamer->Create() != SUCCESS)
if (!(m_streamer = new MxStreamer()) || m_streamer->Create() != SUCCESS)
goto done;
}
@@ -402,3 +403,9 @@ MxEventManager* EventManager()
{
return MxOmni::GetInstance()->GetEventManager();
}
// OFFSET: LEGO1 0x100acf70
MxResult DeleteObject(MxDSAction &p_dsAction)
{
return MxOmni::GetInstance()->DeleteObject(p_dsAction);
}