// // FMODAudioEngine::getFMODStatus from 0x14005cde0 to 0x14005d0f8 (792 bytes) // // 2 xrefs: // > MoreOptionsLayer::onFMODDebug @ 0x14037646e // > @ 0x1406c54a8 // // 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 // // Hidden C++ exception states: #wind=1 __int64 __fastcall FMODAudioEngine::getFMODStatus(__int64 a1, __int64 a2) { cocos2d::CCString *v4; // rax char *CString; // rax size_t v6; // rbx size_t v7; // r8 cocos2d::CCString *v8; // rax char *v9; // rax size_t v10; // r8 float v11; // xmm6_4 cocos2d::CCString *v12; // rax char *v13; // rax size_t v14; // r8 cocos2d::CCString *v15; // rax char *v16; // rax size_t v17; // r8 cocos2d::CCString *v18; // rax char *v19; // rax size_t v20; // r8 cocos2d::CCString *v21; // rax char *v22; // rax size_t v23; // r8 cocos2d::CCString *v24; // rax char *v25; // rax int v27; // [rsp+48h] [rbp-29h] BYREF unsigned int v28; // [rsp+4Ch] [rbp-25h] BYREF unsigned int v29[2]; // [rsp+50h] [rbp-21h] BYREF int v30; // [rsp+58h] [rbp-19h] BYREF int v31; // [rsp+5Ch] [rbp-15h] BYREF int v32; // [rsp+60h] [rbp-11h] BYREF int v33; // [rsp+64h] [rbp-Dh] BYREF int v34; // [rsp+68h] [rbp-9h] BYREF int v35; // [rsp+6Ch] [rbp-5h] BYREF int v36; // [rsp+70h] [rbp-1h] BYREF __int64 v37; // [rsp+78h] [rbp+7h] float v38[6]; // [rsp+80h] [rbp+Fh] BYREF v37 = a2; *(_OWORD *)a2 = 0; *(_QWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 24) = 15; *(_BYTE *)a2 = 0; v29[1] = 1; FMOD_Memory_GetStats(&v31, &v30, 1); v4 = cocos2d::CCString::createWithFormat("Memory: %i, Max: %i", v31, v30); CString = (char *)cocos2d::CCString::getCString(v4); v6 = -1; v7 = -1; do ++v7; while ( CString[v7] ); sub_14003CCE0((void **)a2, CString, v7); FMOD::System::getCPUUsage(*(FMOD::System **)(a1 + 560), (struct FMOD_CPU_USAGE *)v38); v8 = cocos2d::CCString::createWithFormat( "\ndsp: %f, stream: %f\ngeo: %f, update: %f\nconv1: %f, conv2: %f", v38[0], v38[1], v38[2], v38[3], v38[4], v38[5]); v9 = (char *)cocos2d::CCString::getCString(v8); v10 = -1; do ++v10; while ( v9[v10] ); sub_140041270((_QWORD *)a2, v9, v10); FMOD::System::getDSPBufferSize(*(FMOD::System **)(a1 + 560), (unsigned int *)&v32, &v27); FMOD::System::getSoftwareFormat(*(FMOD::System **)(a1 + 560), &v33, nullptr, nullptr); v11 = (float)((float)v32 * 1000.0) / (float)v33; v12 = cocos2d::CCString::createWithFormat("\nMixer blocksize = %f ms", v11); v13 = (char *)cocos2d::CCString::getCString(v12); v14 = -1; do ++v14; while ( v13[v14] ); sub_140041270((_QWORD *)a2, v13, v14); v15 = cocos2d::CCString::createWithFormat("\nMixer Total buffersize = %f ms", (float)((float)v27 * v11)); v16 = (char *)cocos2d::CCString::getCString(v15); v17 = -1; do ++v17; while ( v16[v17] ); sub_140041270((_QWORD *)a2, v16, v17); v18 = cocos2d::CCString::createWithFormat( "\nMixer Average Latency = %f ms", (float)((float)((float)v27 - 1.5) * v11)); v19 = (char *)cocos2d::CCString::getCString(v18); v20 = -1; do ++v20; while ( v19[v20] ); sub_140041270((_QWORD *)a2, v19, v20); FMOD::System::getSoftwareFormat(*(FMOD::System **)(a1 + 560), &v36, (enum FMOD_SPEAKERMODE *)&v35, &v34); v21 = cocos2d::CCString::createWithFormat("\nSR: %i, SM: %i, NRS: %i", v36, v35, v34); v22 = (char *)cocos2d::CCString::getCString(v21); v23 = -1; do ++v23; while ( v22[v23] ); sub_140041270((_QWORD *)a2, v22, v23); v29[0] = 0; v28 = 1; FMOD::System::getStreamBufferSize(*(FMOD::System **)(a1 + 560), v29, &v28); v24 = cocos2d::CCString::createWithFormat("\nstreamBufferSize: %i, Type: %i", v29[0], v28); v25 = (char *)cocos2d::CCString::getCString(v24); do ++v6; while ( v25[v6] ); sub_140041270((_QWORD *)a2, v25, v6); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source