// // FMODAudioEngine::storeEffect from 0x1003e6530 to 0x1003e6615 (229 bytes) // // 2 xrefs: // > FMODAudioEngine::preloadEffect @ 0x1003dd7cc // > FMODAudioEngine::updateQueuedEffects @ 0x1003ded0b // // 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 // __int64 __fastcall FMODAudioEngine::storeEffect(__int64 a1, FMOD::Sound *a2, std::string *a3, double a4) { __int64 v5; // rax __int64 v6; // r14 void *v8; // [rsp+0h] [rbp-70h] BYREF std::string v9; // [rsp+8h] [rbp-68h] BYREF std::string __str; // [rsp+30h] [rbp-40h] BYREF char v11[25]; // [rsp+57h] [rbp-19h] BYREF FMOD::Sound::setLoopCount(a2, 0); if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 ) sub_100006B70(&__str, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_, a4); else __str = *a3; memset(&v9, 0, 37); v8 = a2; std::string::operator=(&v9, &__str); sub_1003EE700(a1 + 360, a3, a3, &v8); if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v9.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); v8 = a3; v5 = sub_1003EC940(a1 + 360, a3, &unk_10081B0A2, &v8, v11); v6 = v5 + 40; FMOD::Sound::getLength(a2, (unsigned int *)(v5 + 72), 1u); return v6; }