//
// AppDelegate::pauseSound from 0x307ab8 to 0x307aea (50 bytes)
//
// 1 xrefs:
// > AppDelegate::applicationDidEnterBackground @ 0x307aee
//
// 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
//
void AppDelegate::pauseSound(AppDelegate *a1)
{
FMODAudioEngine *v2; // r0
FMODAudioEngine *v3; // r0
FMODAudioEngine *v4; // r0
FMODAudioEngine *v5; // r0
v2 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::pauseAllEffects(v2);
if ( a1->m_glViewSetup )
{
v3 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::pauseAllMusic(v3, 1);
}
v4 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stop(v4);
v5 = FMODAudioEngine::sharedEngine();
((void (__fastcall *)(FMODAudioEngine *, _DWORD))v5->update)(v5, 0);
}