//
// FMODAudioEngine::pauseAllMusic from 0x3ecfd2 to 0x3ecffc (42 bytes)
//
// 5 xrefs:
// > PlayLayer::destroyPlayer @ 0x405cf6
// > PlayLayer::loadFromCheckpoint @ 0x411916
// > PlayLayer::resetLevel @ 0x41232c
// > GameManager::videoAdShowed @ 0x41413c
// > GJBaseGameLayer::pauseAudio @ 0x595f08
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:10 +0000
//
FMODAudioEngine *__fastcall FMODAudioEngine::pauseAllMusic(FMODAudioEngine *this, int a2)
{
FMODAudioEngine *v2; // r5
int *i; // r4
v2 = this;
for ( i = *((int **)this + 68); i; i = (int *)*i )
{
if ( a2 || !*((_BYTE *)i + 33) )
{
this = (FMODAudioEngine *)FMODAudioEngine::channelForChannelID(v2, i[3]);
if ( this )
this = (FMODAudioEngine *)FMOD::ChannelControl::setPaused(this, 1);
}
}
return this;
}