// // GJBaseGameLayer::pauseAudio from 0x1402374b0 to 0x1402375fd (333 bytes) // // 8 xrefs: // > EditorUI::onPlayback @ 0x140111afb // > EditorUI::onPlaytest @ 0x1401120f1 // > EditorUI::onPlaytest @ 0x14011224d // > PlayLayer::loadFromCheckpoint @ 0x1403b76bb // > PlayLayer::resetLevel @ 0x1403b8fbb // > PlayLayer::pauseGame @ 0x1403ba23e // > PlayLayer::startMusic @ 0x1403bab53 // > @ 0x1406ce118 // // 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 // // Hidden C++ exception states: #wind=3 void GJBaseGameLayer::pauseAudio(GJBaseGameLayer *a1) { __int64 v1; // rdi __int64 *v2; // rbx FMOD::Channel *v3; // rax FMODAudioEngine *v4; // [rsp+30h] [rbp+8h] FMODAudioEngine *v5; // [rsp+30h] [rbp+8h] FMODAudioEngine *v6; // [rsp+30h] [rbp+8h] v1 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v4 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v4); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v1 = qword_1406C2E88; } if ( !*(_BYTE *)(v1 + 609) ) { *(_BYTE *)(v1 + 609) = 1; FMOD::ChannelControl::setPaused(*(FMOD::ChannelControl **)(v1 + 552), 1); FMOD::ChannelControl::setPaused(*(FMOD::ChannelControl **)(v1 + 584), 1); v1 = qword_1406C2E88; } if ( !v1 ) { v5 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v1 = qword_1406C2E88; } v2 = **(__int64 ***)(v1 + 328); if ( v2 != *(__int64 **)(v1 + 328) ) { do { v3 = FMODAudioEngine::channelForChannelID((FMODAudioEngine *)v1, *((_DWORD *)v2 + 6)); if ( v3 ) FMOD::ChannelControl::setPaused(v3, 1); v2 = (__int64 *)*v2; } while ( v2 != *(__int64 **)(v1 + 328) ); v1 = qword_1406C2E88; } if ( !v1 ) { v6 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v1 = qword_1406C2E88; } FMOD::System::update(*(FMOD::System **)(v1 + 560)); }