// // FMODAudioEngine::triggerQueuedMusic from 0x10013aefc to 0x10013b074 (376 bytes) // // 3 xrefs: // > FMODAudioEngine::updateQueuedMusic @ 0x1001394b4 // > FMODAudioEngine::loadAudioState @ 0x100139eec // > FMODAudioEngine::activateQueuedMusic @ 0x10013e4ac // // 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::triggerQueuedMusic(FMODAudioEngine *a1, FMODQueuedMusic *a2) { int *p_m_musicID; // x20 int m_channelID; // w23 int *p_m_channelID; // x22 int v7; // w24 FMODAudioEngine *v8; // x0 FMODAudioEngine *v9; // x0 FMODAudioEngine *v10; // x0 int v11; // [xsp+10h] [xbp-40h] BYREF char v12; // [xsp+17h] [xbp-39h] BYREF int *v13; // [xsp+18h] [xbp-38h] BYREF if ( a2->m_stopMusic ) { p_m_musicID = &a2->m_musicID; if ( sub_100018814(&a1->m_fmodMusic.__table_.__bucket_list_.__ptr_.__value_, &a2->m_musicID) ) { v13 = &a2->m_musicID; v11 = *(_DWORD *)(sub_1001418C4(&a1->m_fmodMusic, &a2->m_musicID, &unk_100637FD3, &v13, &v11) + 24); if ( sub_100018814(&a1->m_audioState.m_soundStateForChannels.__table_.__bucket_list_.__ptr_.__value_, &v11) ) { m_channelID = a2->m_channelID; v13 = &v11; *(_DWORD *)(sub_10013F980(&a1->m_audioState.m_soundStateForChannels, &v11, &unk_100637FD3, &v13, &v12) + 200) = m_channelID; } } p_m_channelID = &a2->m_channelID; if ( sub_100018814(&a1->m_fmodMusic.__table_.__bucket_list_.__ptr_.__value_, &a2->m_channelID) ) { v13 = &a2->m_channelID; v11 = *(_DWORD *)(sub_1001418C4(&a1->m_fmodMusic, &a2->m_channelID, &unk_100637FD3, &v13, &v11) + 24); if ( sub_100018814(&a1->m_audioState.m_soundStateForChannels.__table_.__bucket_list_.__ptr_.__value_, &v11) ) { v7 = *p_m_musicID; v13 = &v11; *(_DWORD *)(sub_10013F980(&a1->m_audioState.m_soundStateForChannels, &v11, &unk_100637FD3, &v13, &v12) + 200) = v7; } } v8 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAndRemoveMusic(v8, *p_m_channelID); v9 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::swapMusicIndex(v9, *p_m_musicID, *p_m_channelID); *p_m_musicID = *p_m_channelID; } v10 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::startMusic(v10, a2->m_start, a2->m_end, a2->m_fadeIn, a2->m_fadeOut, a2->m_loop, a2->m_musicID, 0, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source