//
// FMODAudioEngine::getActiveMusicChannel from 0x30284c to 0x302874 (40 bytes)
//
// 9 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x302886
// > FMODAudioEngine::pauseMusic @ 0x3028b2
// > FMODAudioEngine::resumeMusic @ 0x3028c6
// > FMODAudioEngine::fadeInMusic @ 0x3028f2
// > FMODAudioEngine::fadeOutMusic @ 0x3029b4
// > FMODAudioEngine::fadeMusic @ 0x302a7a
// > FMODAudioEngine::playMusic @ 0x303804
// > PlayLayer::showCompleteEffect @ 0x30fc0a
// > GJBaseGameLayer::processSongState @ 0x478f1e
//
// 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
//
FMOD::Channel *FMODAudioEngine::getActiveMusicChannel(FMODAudioEngine *a1, int a2)
{
std::unordered_map *p_m_fmodMusic; // r5
FMOD::Channel *result; // r0
int *v5; // r0
int v6; // [sp+4h] [bp-8h] BYREF
p_m_fmodMusic = &a1->m_fmodMusic;
v6 = a2;
result = (FMOD::Channel *)sub_2FE5B6(&a1->m_fmodMusic._M_h._M_buckets, a2);
if ( result )
{
v5 = std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[](
p_m_fmodMusic,
(unsigned int *)&v6);
return FMODAudioEngine::channelForChannelID(a1, *v5);
}
return result;
}