// // FMODAudioEngine::fadeMusic from 0x5b2f1c to 0x5b3018 (252 bytes) // // 3 xrefs: // > SecretRewardsLayer::fadeInMusic @ 0xa609e8 // > SecretRewardsLayer::fadeInOutMusic @ 0xa621c4 // > @ 0x8e278 // // 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::fadeMusic(FMODAudioEngine *a1, float a2, int a3, float a4, float a5) { FMOD::Channel *ActiveMusicChannel; // x0 FMOD::ChannelControl *v10; // x19 unsigned __int64 v11; // [xsp+50h] [xbp+50h] BYREF ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, a3); v10 = ActiveMusicChannel; if ( ActiveMusicChannel ) { FMODAudioEngine::stopAndGetFade(a1, ActiveMusicChannel); a1->m_lastResult = FMOD::ChannelControl::getDSPClock(v10, nullptr, &v11); ERRCHECK_fn(); a1->m_lastResult = FMOD::ChannelControl::addFadePoint(v10, v11, a4); ERRCHECK_fn(); a1->m_lastResult = FMOD::ChannelControl::addFadePoint( v10, (unsigned __int64)(float)((float)v11 + (float)((float)a1->m_sampleRate * a2)), a5); ERRCHECK_fn(); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source