//
// FMODAudioEngine::playEffectAsync from 0x1003e41a0 to 0x1003e4261 (193 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::onPlayback @ 0x1005e3d1e
//
// 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
//
unsigned int __fastcall FMODAudioEngine::playEffectAsync(__int64 a1, __int64 a2, double a3)
{
unsigned int result; // eax
unsigned int v4; // ebx
__int128 v5; // [rsp+50h] [rbp-20h] BYREF
void *__p; // [rsp+60h] [rbp-10h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_100006B70(&v5, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8), a3);
}
else
{
__p = *(void **)(a2 + 16);
v5 = *(_OWORD *)a2;
}
result = FMODAudioEngine::playEffectAdvanced(
a1,
&v5,
0,
0,
0,
0,
(__m128)0x3F800000u,
0.0,
1.0,
0.0,
0.0,
0,
0,
0,
0,
0,
1,
0,
0,
0);
if ( (v5 & 1) != 0 )
{
v4 = result;
operator delete(__p);
return v4;
}
return result;
}