// // FMODAudioEngine::playMusic from 0x14005a140 to 0x14005a2ad (365 bytes) // // 7 xrefs: // > CustomSongWidget::onPlayback @ 0x1400cb24b // > GameManager::playMenuMusic @ 0x14017ba6d // > GameManager::fadeInMusic @ 0x14017bc8d // > GJShopLayer::init @ 0x1402aabf8 // > GJShopLayer::showReactMessage @ 0x1402ad93b // > PlayLayer::togglePracticeMode @ 0x1403ba095 // > @ 0x1406c52bc // // 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=1 void __fastcall FMODAudioEngine::playMusic(FMODAudioEngine *a1, __int64 a2, char a3, float a4) { int v7; // eax int v8; // r8d int v9; // r9d int v10; // r8d __int64 v11; // rax FMOD::Channel *v12; // rax __int64 v13; // rax bool v14; // [rsp+50h] [rbp-88h] BYREF int v15; // [rsp+58h] [rbp-80h] BYREF _BYTE v16[32]; // [rsp+60h] [rbp-78h] BYREF __int64 v17; // [rsp+80h] [rbp-58h] v17 = a2; if ( a1->m_backgroundMusicChannel ) { v7 = sub_14003BDB0((__int64)v16, a2); FMODAudioEngine::loadMusic((_DWORD)a1, v7, v8, v9, 1065353216, a3, 0, 0, 0); if ( a4 > 0.0 ) FMODAudioEngine::fadeInMusic(a1, a4, v10); v15 = 0; if ( sub_14005F8D0(&a1->m_fmodMusic, &v15) ) { v11 = sub_140061560(&a1->m_fmodMusic, v16, &v15); v12 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v11 + 24LL)); if ( v12 ) FMOD::ChannelControl::setPaused(v12, 0); } v14 = 0; FMOD::ChannelControl::getPaused(a1->m_backgroundMusicChannel, &v14); v15 = 0; if ( sub_14005F8D0(&a1->m_fmodMusic, &v15) ) { v13 = sub_140061560(&a1->m_fmodMusic, v16, &v15); FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v13 + 24LL)); } } sub_14003A830(a2); }