//
// FMODAudioEngine::pauseAllMusic from 0x301b30 to 0x301b58 (40 bytes)
//
// 8 xrefs:
// > Java_com_customRobTop_JniToCpp_didShowInterstitial @ 0x2beb48
// > AppDelegate::pauseSound @ 0x307ace
// > AppDelegate::checkSound @ 0x307bc6
// > PlayLayer::destroyPlayer @ 0x313f9a
// > PlayLayer::loadFromCheckpoint @ 0x31f43c
// > PlayLayer::resetLevel @ 0x31f788
// > GameManager::videoAdShowed @ 0x32206c
// > GJBaseGameLayer::pauseAudio @ 0x476920
//
// 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; // r4
_BOOL4 v4; // r6
FMOD::Channel *v5; // r0
M_nxt = a1->m_fmodMusic._M_h._M_before_begin._M_nxt;
v4 = a2;
while ( M_nxt )
{
if ( v4 || !BYTE1(M_nxt[5]._M_nxt) )
{
v5 = FMODAudioEngine::channelForChannelID(a1, (int)M_nxt[2]._M_nxt);
if ( v5 )
FMOD::ChannelControl::setPaused(v5, 1);
}
M_nxt = M_nxt->_M_nxt;
}
}