// // FMODAudioEngine::fadeMusic from 0x10013e8d0 to 0x10013e978 (168 bytes) // // 2 xrefs: // > SecretRewardsLayer::fadeInMusic @ 0x1002eea74 // > SecretRewardsLayer::fadeInOutMusic @ 0x1002eeae4 // // 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::fadeMusic(FMODAudioEngine *a1, float a2, int a3, float a4, float a5) { FMOD::Channel *ActiveMusicChannel; // x0 FMOD::ChannelControl *v10; // x20 FMOD_RESULT v11; // w0 float v12; // s0 unsigned __int64 v13; // [xsp+8h] [xbp-38h] BYREF ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, a3); if ( ActiveMusicChannel ) { v10 = ActiveMusicChannel; FMODAudioEngine::stopAndGetFade(a1, ActiveMusicChannel); a1->m_lastResult = FMOD::ChannelControl::getDSPClock(v10, nullptr, &v13); v11 = FMOD::ChannelControl::addFadePoint(v10, v13, a4); v12 = (float)v13; a1->m_lastResult = v11; a1->m_lastResult = FMOD::ChannelControl::addFadePoint( v10, (unsigned __int64)(float)(v12 + (float)((float)a1->m_sampleRate * a2)), a5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source