mirror of https://github.com/AxioDL/metaforce.git
CFrontEndUI: Remove audio group on destruction
This commit is contained in:
parent
972af7c537
commit
ab01cb5f1a
|
@ -1844,6 +1844,12 @@ CFrontEndUI::CFrontEndUI() : CIOWin("FrontEndUI") {
|
|||
m_touchBar->SetPhase(CFrontEndUITouchBar::EPhase::None);
|
||||
}
|
||||
|
||||
CFrontEndUI::~CFrontEndUI() {
|
||||
if (x14_phase >= EPhase::DisplayFrontEnd) {
|
||||
CAudioSys::RemoveAudioGroup(x44_frontendAudioGrp->GetAudioGroupData());
|
||||
}
|
||||
}
|
||||
|
||||
void CFrontEndUI::StartSlideShow(CArchitectureQueue& queue) {
|
||||
xf4_curAudio->StopMixing();
|
||||
queue.Push(MakeMsg::CreateCreateIOWin(EArchMsgTarget::IOWinManager, 12, 11, std::make_shared<CSlideShow>()));
|
||||
|
|
|
@ -371,6 +371,7 @@ private:
|
|||
|
||||
public:
|
||||
CFrontEndUI();
|
||||
~CFrontEndUI();
|
||||
void StartSlideShow(CArchitectureQueue& queue);
|
||||
std::string GetAttractMovieFileName(int idx);
|
||||
std::string GetNextAttractMovieFileName();
|
||||
|
|
Loading…
Reference in New Issue