// // AudioEffectsLayer::triggerEffect from 0x1004afa20 to 0x1004afb3d (285 bytes) // // 1 xrefs: // > AudioEffectsLayer::audioStep @ 0x1004afa13 // // 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 AudioEffectsLayer::triggerEffect(AudioEffectsLayer *a1, float a2) { float v2; // xmm0_4 cocos2d::CCActionTween *v3; // r15 cocos2d::CCActionTween *v4; // r14 cocos2d::CCCallFunc *v5; // rax cocos2d::CCSequence *v6; // r14 if ( a2 == 1.0 ) { a2 = 4.0; } else if ( a2 == 0.89999998 ) { a2 = 3.0; } else if ( a2 == 0.80000001 ) { a2 = 2.5; } v2 = fminf((float)(a2 * 0.2) + a1->m_audioScale, 1.1); if ( a1->m_goingDown || v2 >= a1->m_audioPulseMod ) { a1->m_audioPulseMod = v2; a1->m_goingDown = 0; cocos2d::CCNode::stopActionByTag(a1, 0); v3 = cocos2d::CCActionTween::create_1(0.050000001, "audioScale", a1->m_audioScale, v2); v4 = cocos2d::CCActionTween::create_1(0.2, "audioScale", v2, 0.1); v5 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)AudioEffectsLayer::goingDown); v6 = sub_1003B5760(v3, v5, v4, 0); ((void (__fastcall *)(cocos2d::CCSequence *, _QWORD))v6->setTag)(v6, 0); cocos2d::CCNode::runAction(a1, v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source