//
// FMODAudioEngine::isSoundReady from 0x2ff1a4 to 0x2ff1f4 (80 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::updateQueuedMusic @ 0x304286
// > FMODAudioEngine::updateQueuedEffects @ 0x306220
//
// 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
//
bool FMODAudioEngine::isSoundReady(FMODAudioEngine *a1, FMOD::Sound *a2)
{
int v3; // [sp+8h] [bp-Ch] BYREF
a1->m_lastResult = FMOD::Sound::getOpenState(a2, (FMOD_OPENSTATE *)&v3, nullptr, nullptr, nullptr);
ERRCHECK_fn();
return !v3 || v3 == 6 || v3 == 2;
}