// // FMODAudioEngine::releaseRemovedSounds from 0x5ac078 to 0x5ac1bc (324 bytes) // // 2 xrefs: // > FMODAudioEngine::update @ 0x5bb21c // > @ 0x76398 // // 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::releaseRemovedSounds(FMODAudioEngine *a1) { FMOD::Sound **m_start; // x1 __int64 v3; // x5 int v4; // w20 FMOD::Sound *v5; // x25 __int64 v6; // x24 FMOD::Sound **v7; // x3 FMOD::Sound **m_finish; // x0 FMOD::Sound **v9; // x1 std::vector *p_m_removedSounds; // x2 FMOD::Sound **v11; // x0 int v12; // [xsp+54h] [xbp+54h] BYREF m_start = a1->m_removedSounds.m_start; if ( a1->m_removedSounds.m_finish - m_start ) { v3 = 0; v4 = 0; do { while ( 1 ) { v5 = m_start[v3]; v6 = v3; a1->m_lastResult = FMOD::Sound::getOpenState(v5, (FMOD_OPENSTATE *)&v12, nullptr, nullptr, nullptr); ERRCHECK_fn(); if ( (v12 & 0xFFFFFFFD) == 0 ) break; ++v4; m_start = a1->m_removedSounds.m_start; v3 = v4; if ( v4 >= (unsigned __int64)(a1->m_removedSounds.m_finish - m_start) ) return; } FMOD::Sound::release(v5); v7 = a1->m_removedSounds.m_start; m_finish = a1->m_removedSounds.m_finish; v9 = &v7[v6 + 1]; if ( v9 != m_finish && m_finish - v9 ) { memmove(&v7[v6], v9, (char *)m_finish - (char *)v9); m_finish = a1->m_removedSounds.m_finish; p_m_removedSounds = &a1->m_removedSounds; m_start = a1->m_removedSounds.m_start; } else { m_start = a1->m_removedSounds.m_start; p_m_removedSounds = &a1->m_removedSounds; } v11 = m_finish - 1; p_m_removedSounds->m_finish = v11; v3 = v4; } while ( v4 < (unsigned __int64)(v11 - m_start) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source