//
// FMODAudioEngine::resumeSuspendedAudio from 0x14005e030 to 0x14005e0ca (154 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::start @ 0x14005dfff
// > ??> @ 0x140910910
//
// 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 11:25:43 +0000
//
__int64 __fastcall FMODAudioEngine::resumeSuspendedAudio(__int64 a1)
{
unsigned int *v2; // rsi
unsigned int *i; // rbx
__int64 v4; // rax
__int64 result; // rax
if ( *(_BYTE *)(a1 + 625) && !*(_BYTE *)(a1 + 617) )
FMOD::ChannelControl::setPaused(*(_QWORD *)(a1 + 584), 0);
*(_BYTE *)(a1 + 625) = 0;
v2 = *(unsigned int **)(a1 + 640);
for ( i = *(unsigned int **)(a1 + 632); i != v2; ++i )
{
v4 = FMODAudioEngine::channelForChannelID(a1, *i);
if ( v4 )
FMOD::ChannelControl::setPaused(v4, 0);
}
result = *(_QWORD *)(a1 + 632);
if ( result != *(_QWORD *)(a1 + 640) )
*(_QWORD *)(a1 + 640) = result;
return result;
}