//
// FMODAudioEngine::countActiveMusic from 0x10013b098 to 0x10013b100 (104 bytes)
//
// 2 xrefs:
// > PlayLayer::updateInfoLabel @ 0x100117e28
// > FMODAudioEngine::countActiveEffects @ 0x10013b084
//
// 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
//
int __fastcall FMODAudioEngine::countActiveMusic(FMODAudioEngine *a1)
{
std::__hash_node_base, void *> *>::__next_pointer next; // x20
int v2; // w19
_BYTE v4[8]; // [xsp+8h] [xbp-48h] BYREF
int v5; // [xsp+10h] [xbp-40h]
void *__p; // [xsp+20h] [xbp-30h]
char v7; // [xsp+37h] [xbp-19h]
next = a1->m_fmodMusic.__table_.__p1_.__value_.__next_;
if ( !next )
return 0;
v2 = 0;
do
{
sub_10013F67C(v4, &next[2]);
if ( v5 > 0 )
++v2;
if ( v7 < 0 )
operator delete(__p);
next = next->__next_;
}
while ( next );
return v2;
}