//
// AppDelegate::checkSound from 0x10065c6d0 to 0x10065c749 (121 bytes)
//
// 0 xrefs:
//
// 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 __fastcall AppDelegate::checkSound(AppDelegate *a1)
{
FMODAudioEngine *v1; // rax
cocos2d::CCScene *m_pRunningScene; // rbx
GameManager *v3; // rax
if ( GameManager::sharedState()->m_loadingLevel
|| (m_pRunningScene = cocos2d::CCDirector::sharedDirector()->m_pRunningScene) != nullptr
&& (GameManager::sharedState()->m_playLayer
&& (cocos2d::CCApplication::sharedApplication()[1].m_resourceRootPath.m_data.m_short.shortStorage.__elems_[0]
|| (v3 = GameManager::sharedState(), !PlayLayer::isGameplayActive(v3->m_playLayer)))
|| m_pRunningScene->m_eObjType == LevelEditorLayerObjectType) )
{
v1 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::pauseAllMusic(v1, 1);
}
}