Fix notification/presenter casts (#1532)

* LegoCarBuild: cast c_notificationType0 to MxNotificationParam

* MxBackgroundAuioManager gets a MxWavePresenter
This commit is contained in:
Anonymous Maarten
2025-05-30 21:43:33 +02:00
committed by GitHub
parent d0f4725f0f
commit e813a12a4a
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,6 @@
#include "legomain.h"
#include "misc.h"
#include "mxaudiopresenter.h"
#include "mxcompositepresenter.h"
#include "mxdssound.h"
#include "mxmisc.h"
#include "mxnotificationmanager.h"
@@ -11,6 +10,7 @@
#include "mxstreamer.h"
#include "mxticklemanager.h"
#include "mxutilities.h"
#include "mxwavepresenter.h"
DECOMP_SIZE_ASSERT(MxBackgroundAudioManager, 0x150)
@@ -356,7 +356,7 @@ MxResult MxBackgroundAudioManager::SetPendingPresenter(
m_pendingPresenter = (MxAudioPresenter*) p_presenter;
m_targetVolume = ((MxDSSound*) m_pendingPresenter->GetAction())->GetVolume();
((MxCompositePresenter*) m_pendingPresenter)->VTable0x60(NULL);
((MxWavePresenter*) m_pendingPresenter)->SetVolume(0);
m_speed = p_speed;
m_tickleState = p_tickleState;