// // FMODAudioEngine::fadeOutMusic from 0x5b2e2c to 0x5b2f1c (240 bytes) // // 5 xrefs: // > PlayLayer::showCompleteEffect @ 0x5ca808 // > GauntletSelectLayer::playUnlockAnimation @ 0x918e24 // > LevelAreaInnerLayer::onDoor @ 0xa2d994 // > GJPathPage::playUnlockAnimation @ 0xa6df64 // > @ 0x351f0 // // 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::fadeOutMusic(FMODAudioEngine *a1, float a2, int a3) { FMOD::Channel *ActiveMusicChannel; // x0 FMOD::ChannelControl *v6; // x19 float Fade; // [xsp+40h] [xbp+40h] unsigned __int64 v8; // [xsp+50h] [xbp+50h] BYREF ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, a3); v6 = ActiveMusicChannel; if ( ActiveMusicChannel ) { Fade = FMODAudioEngine::stopAndGetFade(a1, ActiveMusicChannel); a1->m_lastResult = FMOD::ChannelControl::getDSPClock(v6, nullptr, &v8); ERRCHECK_fn(); a1->m_lastResult = FMOD::ChannelControl::addFadePoint(v6, v8, Fade); ERRCHECK_fn(); a1->m_lastResult = FMOD::ChannelControl::addFadePoint( v6, (unsigned __int64)(float)((float)v8 + (float)((float)a1->m_sampleRate * a2)), 0.0); ERRCHECK_fn(); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source