//
// FMODAudioEngine::pauseAllMusic from 0x5b1088 to 0x5b10e8 (96 bytes)
//
// 9 xrefs:
// > Java_com_customRobTop_JniToCpp_didShowInterstitial @ 0x4eda08
// > AppDelegate::pauseSound @ 0x5be2e4
// > AppDelegate::checkSound @ 0x5be488
// > PlayLayer::destroyPlayer @ 0x5d1db0
// > PlayLayer::loadFromCheckpoint @ 0x5e4efc
// > PlayLayer::resetLevel @ 0x5e5a3c
// > GameManager::videoAdShowed @ 0x5eafac
// > GJBaseGameLayer::pauseAudio @ 0x8660c8
// > ??> @ 0x2c328
//
// 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 FMODAudioEngine::pauseAllMusic(FMODAudioEngine *a1, bool a2)
{
std::__detail::_Hash_node_base *M_nxt; // x19
_BOOL4 i; // w20
FMOD::Channel *v5; // x0
M_nxt = a1->m_fmodMusic._M_h._M_before_begin._M_nxt;
for ( i = a2; M_nxt; M_nxt = M_nxt->_M_nxt )
{
if ( i || !BYTE1(M_nxt[5]._M_nxt) )
{
v5 = FMODAudioEngine::channelForChannelID(a1, (int)M_nxt[2]._M_nxt);
if ( v5 )
FMOD::ChannelControl::setPaused(v5, 1);
}
}
}