2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:47:42 +00:00

Implement remaining CStateManager stubs

This commit is contained in:
Jack Andersen
2017-03-31 09:51:40 -10:00
parent 2530163a8c
commit 1731cae418
23 changed files with 317 additions and 90 deletions

View File

@@ -495,6 +495,34 @@ void CSfxManager::DisableAuxProcessing()
m_auxProcessingEnabled = false;
}
void CSfxManager::SetActiveAreas(const rstl::reserved_vector<TAreaId, 10>& areas)
{
CSfxChannel& chanObj = m_channels[int(m_currentChannel)];
for (const CSfxHandle& hnd : chanObj.x48_handles)
{
TAreaId sndArea = hnd->GetArea();
if (sndArea == kInvalidAreaId)
{
hnd->SetInArea(true);
}
else
{
bool inArea = false;
for (TAreaId id : areas)
{
if (sndArea == id)
{
inArea = true;
break;
}
}
m_doUpdate = true;
hnd->SetInArea(inArea);
}
}
}
void CSfxManager::Update(float dt)
{
CSfxChannel& chanObj = m_channels[int(m_currentChannel)];