// // GJBaseGameLayer::applySFXEditTrigger from 0x10020529c to 0x1002053a0 (260 bytes) // // 4 xrefs: // > GJBaseGameLayer::activateSongEditTrigger @ 0x100202f4c // > GJBaseGameLayer::activateSFXEditTrigger @ 0x10020328c // > GJBaseGameLayer::activateSFXEditTrigger @ 0x100203314 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x100203368 // // 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 GJBaseGameLayer::applySFXEditTrigger(GJBaseGameLayer *a1, int a2, int a3, SFXTriggerGameObject *a4) { FMODAudioEngine *v7; // x0 float m_pitch; // s8 FMODAudioEngine *v9; // x0 FMODAudioEngine *v10; // x0 if ( a1->m_practiceMusicSync || !a1->m_isPracticeMode || a1->m_isPlatformer ) { if ( a4->m_stop || a4->m_stopLoop ) { v7 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopChannel(v7, a2, (AudioTargetType)a3, a4->m_stopLoop, 0.0); } if ( a4->m_changeVolume ) { m_pitch = a4->m_pitch; if ( m_pitch <= 0.0 ) { FMODAudioEngine::sharedEngine(); m_pitch = FMODAudioEngine::pitchForIdx(a4->m_speed); } v9 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::updateChannel(v9, a2, (AudioTargetType)a3, Pitch, a4->m_duration, m_pitch); } if ( a4->m_changeSpeed ) { v10 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::updateChannel(v10, a2, (AudioTargetType)a3, Volume, a4->m_duration, a4->m_volume); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source