MxBackgroundAuioManager gets a MxWavePresenter

This commit is contained in:
Anonymous Maarten 2025-05-30 19:56:02 +02:00
parent b74ee2f9ff
commit 9e98f5d690

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;