// // FMODAudioEngine::getActiveMusicChannel from 0x5b2b84 to 0x5b2c98 (276 bytes) // // 10 xrefs: // > FMODAudioEngine::isMusicPlaying @ 0x5b2cbc // > FMODAudioEngine::pauseMusic @ 0x5b2d00 // > FMODAudioEngine::resumeMusic @ 0x5b2d24 // > FMODAudioEngine::fadeInMusic @ 0x5b2d6c // > FMODAudioEngine::fadeOutMusic @ 0x5b2e58 // > FMODAudioEngine::fadeMusic @ 0x5b2f54 // > FMODAudioEngine::playMusic @ 0x5b6e70 // > PlayLayer::showCompleteEffect @ 0x5ca784 // > GJBaseGameLayer::processSongState @ 0x86961c // > @ 0x62e50 // // 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) { char **p_m_fmodMusic; // x20 std::_Hashtable, 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>::size_type M_bucket_count; // x6 unsigned __int64 v6; // x1 std::_Hashtable, 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>::__bucket_type v7; // x7 std::__detail::_Hash_node_base *M_nxt; // x4 int v9; // w0 int *v10; // x0 char *v12; // x0 unsigned __int64 v13; // [xsp+38h] [xbp+38h] int v14; // [xsp+4Ch] [xbp+4Ch] BYREF int *v15; // [xsp+50h] [xbp+50h] BYREF p_m_fmodMusic = (char **)&a1->m_fmodMusic; v14 = a2; if ( !sub_5AA30C(&a1->m_fmodMusic._M_h._M_buckets, a2) ) return nullptr; M_bucket_count = a1->m_fmodMusic._M_h._M_bucket_count; v6 = a2 % M_bucket_count; v7 = a1->m_fmodMusic._M_h._M_buckets[v6]; if ( !v7 ) goto LABEL_12; M_nxt = v7->_M_nxt; if ( a2 != LODWORD(v7->_M_nxt[1]._M_nxt) ) { while ( M_nxt->_M_nxt ) { v9 = (int)M_nxt->_M_nxt[1]._M_nxt; v7 = M_nxt; if ( v6 != v9 % M_bucket_count ) break; M_nxt = M_nxt->_M_nxt; if ( a2 == v9 ) goto LABEL_7; } goto LABEL_12; } LABEL_7: if ( !v7->_M_nxt ) { LABEL_12: v13 = a2 % M_bucket_count; v15 = &v14; v12 = (char *)sub_5AA5B0(&v15); v10 = (int *)(std::_Hashtable,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>::_M_insert_unique_node( p_m_fmodMusic, v13, a2, v12) + 16); return FMODAudioEngine::channelForChannelID(a1, *v10); } v10 = (int *)&v7->_M_nxt[2]; return FMODAudioEngine::channelForChannelID(a1, *v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source