//
// FMODAudioEngine::pauseAllMusic from 0x10013ce24 to 0x10013ce80 (92 bytes)
//
// 6 xrefs:
// > PlayLayer::destroyPlayer @ 0x10011ed30
// > PlayLayer::loadFromCheckpoint @ 0x100121044
// > PlayLayer::resetLevel @ 0x100121c34
// > GJBaseGameLayer::pauseAudio @ 0x1001fe498
// > AppDelegate::pauseSound @ 0x10026951c
// > AppDelegate::checkSound @ 0x10026970c
//
// 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 FMODAudioEngine::pauseAllMusic(FMODAudioEngine *a1, bool a2)
{
std::__hash_node_base, void *> *>::__next_pointer i; // x21
FMOD::Channel *v5; // x0
for ( i = a1->m_fmodMusic.__table_.__p1_.__value_.__next_; i; i = i->__next_ )
{
if ( a2 || (BYTE1(i[8].__next_) & 1) == 0 )
{
v5 = FMODAudioEngine::channelForChannelID(a1, (int)i[3].__next_);
if ( v5 )
FMOD::ChannelControl::setPaused(v5, 1);
}
}
}