// // FMODAudioEngine::fadeMusic from 0x302a5c to 0x302b16 (186 bytes) // // 2 xrefs: // > SecretRewardsLayer::fadeInMusic @ 0x585108 // > SecretRewardsLayer::fadeInOutMusic @ 0x585d8a // // 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; // r0 FMOD::ChannelControl *v9; // r6 unsigned __int64 v10; // [sp+8h] [bp-10h] BYREF ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, a3); v9 = ActiveMusicChannel; if ( ActiveMusicChannel ) { FMODAudioEngine::stopAndGetFade(a1, ActiveMusicChannel); a1->m_lastResult = FMOD::ChannelControl::getDSPClock(v9, nullptr, &v10); ERRCHECK_fn(); a1->m_lastResult = FMOD::ChannelControl::addFadePoint(v9, v10, a4); ERRCHECK_fn(); a1->m_lastResult = FMOD::ChannelControl::addFadePoint( v9, (unsigned __int64)(float)((float)v10 + (float)((float)a1->m_sampleRate * a2)), a5); ERRCHECK_fn(); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source