// // FMODAudioEngine::fadeOutMusic from 0x10013e834 to 0x10013e8d0 (156 bytes) // // 4 xrefs: // > PlayLayer::showCompleteEffect @ 0x10011a640 // > GauntletSelectLayer::playUnlockAnimation @ 0x1001c00b8 // > LevelAreaInnerLayer::onDoor @ 0x100346354 // > GJPathPage::playUnlockAnimation @ 0x1003ba3b0 // // 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 __fastcall FMODAudioEngine::fadeOutMusic(FMODAudioEngine *a1, float a2, int a3) { FMOD::Channel *ActiveMusicChannel; // x0 FMOD::ChannelControl *v6; // x20 float Fade; // s9 FMOD_RESULT v8; // w0 float v9; // s0 unsigned __int64 v10; // [xsp+8h] [xbp-28h] BYREF ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, a3); if ( ActiveMusicChannel ) { v6 = ActiveMusicChannel; Fade = FMODAudioEngine::stopAndGetFade(a1, ActiveMusicChannel); a1->m_lastResult = FMOD::ChannelControl::getDSPClock(v6, nullptr, &v10); v8 = FMOD::ChannelControl::addFadePoint(v6, v10, Fade); v9 = (float)v10; a1->m_lastResult = v8; a1->m_lastResult = FMOD::ChannelControl::addFadePoint( v6, (unsigned __int64)(float)(v9 + (float)((float)a1->m_sampleRate * a2)), 0.0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source