// // FMODAudioEngine::stopAndRemoveMusic from 0x14005cab0 to 0x14005cb94 (228 bytes) // // 6 xrefs: // > FMODAudioEngine::triggerQueuedMusic @ 0x14005bc1f // > FMODAudioEngine::preloadMusic @ 0x14005c8e4 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x140244113 // > GJBaseGameLayer::processSongState @ 0x1402456e0 // > MusicBrowser::onPlaybackControl @ 0x140339ab2 // > @ 0x1406c5490 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void FMODAudioEngine::stopAndRemoveMusic(FMODAudioEngine *a1, int a2) { __int64 v3; // rax FMOD::Channel *v4; // rax _QWORD *v5; // rax std::_Vector_val>::pointer Mylast; // rdx std::_Simple_types::value_type *v7; // r8 _BYTE v8[24]; // [rsp+20h] [rbp-18h] BYREF int v9; // [rsp+48h] [rbp+10h] BYREF v9 = a2; if ( sub_14005F8D0(&a1->m_fmodMusic, &v9) ) { v3 = sub_140061560(&a1->m_fmodMusic, v8, &v9); v4 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v3 + 24LL)); if ( v4 ) { FMOD::ChannelControl::stop(v4); } else { if ( *(_QWORD *)(*(_QWORD *)sub_140061560(&a1->m_fmodMusic, v8, &v9) + 32LL) ) { v5 = (_QWORD *)sub_140061560(&a1->m_fmodMusic, v8, &v9); Mylast = a1->m_removedSounds._Mypair._Myval2._Mylast; v7 = (std::_Simple_types::value_type *)(*v5 + 32LL); if ( Mylast == a1->m_removedSounds._Mypair._Myval2._Myend ) { sub_140063110(&a1->m_removedSounds, Mylast, v7); } else { *Mylast = *v7; ++a1->m_removedSounds._Mypair._Myval2._Mylast; } } sub_14005DA90(&a1->m_fmodMusic, &v9); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source