// // GJBaseGameLayer::applySFXEditTrigger from 0x86846c to 0x868558 (236 bytes) // // 5 xrefs: // > GJBaseGameLayer::activateSongEditTrigger @ 0x88cf48 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x88d318 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x88d3b8 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x88d3c8 // > @ 0x59448 // // 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::applySFXEditTrigger(GJBaseGameLayer *a1, int a2, int a3, SFXTriggerGameObject *a4) { float *v4; // x0 FMODAudioEngine *v8; // x0 float m_pitch; // s1 FMODAudioEngine *v10; // x0 FMODAudioEngine *v11; // x0 float v12; // [xsp+30h] [xbp+30h] v4 = &a1->m_varianceValues.__elems_[1975]; if ( *((_BYTE *)v4 + 593) || !*((_BYTE *)v4 + 592) || *((_BYTE *)v4 + 270) ) { if ( a4->m_stop || a4->m_stopLoop ) { v8 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopChannel((__int64)v8, a2, 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); } v12 = m_pitch; v10 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::updateChannel(v10, a2, (AudioTargetType)a3, Pitch, a4->m_duration, v12); } if ( a4->m_changeSpeed ) { v11 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::updateChannel(v11, a2, (AudioTargetType)a3, Volume, a4->m_duration, a4->m_volume); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source