// // FMODAudioEngine::stopChannel_1 from 0x10013c528 to 0x10013c65c (308 bytes) // // 2 xrefs: // > FMODAudioEngine::stopChannel @ 0x10013c440 // > FMODAudioEngine::stopChannel @ 0x10013c4e0 // // 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::stopChannel_1(FMODAudioEngine *a1, FMOD::Channel *a2, bool a3, float a4) { _BOOL4 v5; // w21 float Fade; // s9 FMOD_RESULT v9; // w0 float v10; // s0 int v11; // [xsp+4h] [xbp-3Ch] BYREF unsigned __int64 v12; // [xsp+8h] [xbp-38h] BYREF if ( a2 ) { v5 = a3; if ( a4 > 0.0 || a3 ) { FMOD::ChannelControl::getUserData(a2, (void **)&v12); v11 = v12; sub_10001C1B0((unsigned __int64)&a1->m_stoppedChannels, &v11, &v11); if ( v5 ) FMOD::Channel::setLoopCount(a2, 0); if ( a4 > 0.0 ) { a1->m_lastResult = FMOD::ChannelControl::getDSPClock(a2, nullptr, &v12); Fade = FMODAudioEngine::stopAndGetFade(a1, a2); a1->m_lastResult = FMOD::ChannelControl::setDelay( a2, 0, (unsigned __int64)(float)((float)v12 + (float)((float)a1->m_sampleRate * a4)), 1); v9 = FMOD::ChannelControl::addFadePoint(a2, v12, Fade); v10 = (float)v12; a1->m_lastResult = v9; a1->m_lastResult = FMOD::ChannelControl::addFadePoint( a2, (unsigned __int64)(float)(v10 + (float)((float)a1->m_sampleRate * a4)), 0.0); } } else { FMOD::ChannelControl::stop(a2); } } }