// // GJBaseGameLayer::pauseAudio from 0x140340330 to 0x140340480 (336 bytes) // // 8 xrefs: // > EditorUI::onPlayback @ 0x1401b41ca // > EditorUI::onPlaytest @ 0x1401b47c3 // > LevelEditorLayer::onPausePlaytest @ 0x1403ffc94 // > PlayLayer::loadFromCheckpoint @ 0x14051689b // > PlayLayer::resetLevel @ 0x140518d99 // > PlayLayer::pauseGame @ 0x14051a52e // > PlayLayer::startMusic @ 0x14051b032 // > @ 0x14091fd48 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:30:39 +0000 // // Hidden C++ exception states: #wind=3 __int64 __fastcall GJBaseGameLayer::pauseAudio(__int64 a1, __int64 a2) { __int64 v2; // rdi __int64 v3; // rdx _QWORD *v4; // rax _QWORD *v5; // rbx __int64 v6; // rax __int64 v7; // rdx void *v9; // [rsp+30h] [rbp+8h] void *v10; // [rsp+30h] [rbp+8h] void *v11; // [rsp+30h] [rbp+8h] v2 = qword_14090BF60; if ( !qword_14090BF60 ) { v9 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v2 = qword_14090BF60; } if ( !*(_BYTE *)(v2 + 617) ) { *(_BYTE *)(v2 + 617) = 1; LOBYTE(a2) = 1; FMOD::ChannelControl::setPaused(*(_QWORD *)(v2 + 552), a2); LOBYTE(v3) = 1; FMOD::ChannelControl::setPaused(*(_QWORD *)(v2 + 584), v3); v2 = qword_14090BF60; } if ( !v2 ) { v10 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v2 = qword_14090BF60; } v4 = *(_QWORD **)(v2 + 328); v5 = (_QWORD *)*v4; if ( (_QWORD *)*v4 != v4 ) { do { v6 = FMODAudioEngine::channelForChannelID((_QWORD *)v2, *((_DWORD *)v5 + 6)); if ( v6 ) { LOBYTE(v7) = 1; FMOD::ChannelControl::setPaused(v6, v7); } v5 = (_QWORD *)*v5; } while ( v5 != *(_QWORD **)(v2 + 328) ); v2 = qword_14090BF60; } if ( !v2 ) { v11 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v2 = qword_14090BF60; } return FMOD::System::update(*(_QWORD *)(v2 + 560)); }