//
// FMODAudioEngine::playEffectAsync from 0x1003d1710 to 0x1003d17d1 (193 bytes)
//
// 1 xrefs:
// > CustomSFXWidget::onPlayback @ 0x1006b6cce
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:29:39 +0000
//
__int64 __fastcall FMODAudioEngine::playEffectAsync(__int64 a1, __int64 a2)
{
__int64 result; // rax
unsigned int v3; // ebx
__int128 v4; // [rsp+50h] [rbp-20h] BYREF
void *__p; // [rsp+60h] [rbp-10h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v4, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8));
}
else
{
__p = *(void **)(a2 + 16);
v4 = *(_OWORD *)a2;
}
result = FMODAudioEngine::playEffectAdvanced(
a1,
&v4,
0,
0,
0,
0,
(__m128)0x3F800000u,
0.0,
1.0,
0.0,
0.0,
0,
0,
0,
0,
0,
1,
0,
0,
0);
if ( (v4 & 1) != 0 )
{
v3 = result;
operator delete(__p);
return v3;
}
return result;
}