// // GJBaseGameLayer::activateSongTrigger from 0x4844c4 to 0x4845c6 (258 bytes) // // 4 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x36deaa // > EffectGameObject::triggerObject @ 0x3ee474 // > GJBaseGameLayer::processQueuedAudioTriggers @ 0x484dd4 // > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b2b8 // // 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 GJBaseGameLayer::activateSongTrigger(GJBaseGameLayer *a1, SongTriggerGameObject *a2) { int m_songChannel; // r7 FMODAudioEngine *v5; // r0 FMODAudioEngine *v6; // r9 MusicDownloadManager *v7; // r0 int v8; // r0 SongTriggerGameObject *v9; // [sp+30h] [bp-Ch] BYREF if ( a1->m_practiceMusicSync || !a1->m_isPracticeMode ) { a1->activatedAudioTrigger(a1, a2); if ( !a1->m_loadingStartPosition ) { if ( a1->m_startingFromBeginning ) { v9 = a2; std::vector::emplace_back( (const void **)&a1->m_activeSfxTriggers.m_start, &v9); } else { m_songChannel = a2->m_songChannel; if ( a2->m_loadPrep ) { v5 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::activateQueuedMusic(v5, ~m_songChannel); } else { v6 = FMODAudioEngine::sharedEngine(); v7 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong((MusicDownloadManager *)&v9, v7, a2->m_soundID); FMODAudioEngine::sharedEngine(); *(float *)&v8 = FMODAudioEngine::pitchForIdx(a2->m_speed); FMODAudioEngine::queueStartMusic( v6, (int)&v9, v8, 0, LODWORD(a2->m_volume), a2->m_loop, a2->m_start, a2->m_end, a2->m_fadeIn, a2->m_fadeOut, ~m_songChannel, 1, m_songChannel, !a2->m_prep, a2->m_dontReset); sub_774008(&v9); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source