// // FMODAudioEngine::releaseRemovedSounds from 0x3e8358 to 0x3e8402 (170 bytes) // // 1 xrefs: // > sub_3F1D80 @ 0x3f1dc4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:05 +0000 // void __fastcall FMODAudioEngine::releaseRemovedSounds(FMODAudioEngine *this) { unsigned int v1; // r10 int v3; // r2 FMOD::Sound *v4; // r11 char *v5; // r3 size_t v6; // r5 char *v7; // r5 char *v8; // r3 int v9; // [sp+8h] [bp+0h] v1 = 0; while ( 1 ) { v3 = *((_DWORD *)this + 184); if ( v1 >= (*((_DWORD *)this + 185) - v3) >> 2 ) break; v4 = *(FMOD::Sound **)(v3 + 4 * v1); *((_DWORD *)this + 97) = FMOD::Sound::getOpenState(); ERRCHECK_fn(); if ( (v9 & 0xFFFFFFFD) != 0 ) { ++v1; } else { FMOD::Sound::release(v4); v5 = (char *)(*((_DWORD *)this + 184) + 4 * v1); v6 = *((_DWORD *)this + 185) - (_DWORD)(v5 + 4); if ( v6 >> 2 ) v5 = (char *)memmove((void *)(*((_DWORD *)this + 184) + 4 * v1), v5 + 4, v6); v7 = &v5[v6]; while ( 1 ) { v8 = *((char **)this + 185); if ( v7 == v8 ) break; *((_DWORD *)this + 185) = v8 - 4; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source