// // FMODAudioEngine::releaseRemovedSounds from 0x2ff398 to 0x2ff436 (158 bytes) // // 1 xrefs: // > FMODAudioEngine::update @ 0x306350 // // 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) { unsigned int v1; // r6 FMOD::Sound **m_start; // r2 FMOD::Sound *v4; // r11 FMOD::Sound **m_finish; // r2 FMOD::Sound **v6; // r0 _BYTE *v7; // r1 size_t v8; // r2 int v9; // [sp+8h] [bp+0h] BYREF v1 = 0; while ( 1 ) { m_start = a1->m_removedSounds.m_start; if ( v1 >= a1->m_removedSounds.m_finish - m_start ) break; v4 = m_start[v1]; a1->m_lastResult = FMOD::Sound::getOpenState(v4, (FMOD_OPENSTATE *)&v9, nullptr, nullptr, nullptr); ERRCHECK_fn(); if ( (v9 & 0xFFFFFFFD) != 0 ) { ++v1; } else { FMOD::Sound::release(v4); m_finish = a1->m_removedSounds.m_finish; v6 = &a1->m_removedSounds.m_start[v1]; v7 = v6 + 1; if ( v6 + 1 != m_finish ) { v8 = (char *)m_finish - v7; if ( v8 >> 2 ) memmove(v6, v7, v8); } --a1->m_removedSounds.m_finish; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source