// // FMODAudioEngine::playMusic from 0x1003d4460 to 0x1003d45fe (414 bytes) // // 6 xrefs: // > sub_10008D8C0 @ 0x10008d909 // > GJShopLayer::init @ 0x10030f1a0 // > GJShopLayer::showReactMessage @ 0x100311bf3 // > GameManager::playMenuMusic @ 0x1003604b6 // > GameManager::fadeInMusic @ 0x100360831 // > CustomSongWidget::onPlayback @ 0x1006f8cb8 // // 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 12:29:40 +0000 // void __fastcall FMODAudioEngine::playMusic(__int64 a1, __int128 *a2, unsigned __int8 a3, unsigned int a4, float a5) { unsigned __int8 v6; // r15 FMOD::ChannelControl *ActiveMusicChannel; // rax FMOD::ChannelControl *v8; // r15 float v9; // xmm0_4 FMOD::ChannelControl *v10; // rax __int128 v11; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] bool v13[8]; // [rsp+18h] [rbp-28h] BYREF float v14; // [rsp+24h] [rbp-1Ch] v14 = a5; if ( *(_QWORD *)(a1 + 480) ) { if ( (*(_BYTE *)a2 & 1) != 0 ) { v6 = a3; sub_10001AD30(&v11, *((const void **)a2 + 2), *((_QWORD *)a2 + 1)); a3 = v6; } else { __p = *((void **)a2 + 2); v11 = *a2; } FMODAudioEngine::loadMusic(a1, (unsigned __int8 *)&v11, a3, a4, 0, 0, (__m128)0x3F800000u, 0.0, 1.0); if ( (v11 & 1) != 0 ) operator delete(__p); if ( v14 > 0.0 ) { ActiveMusicChannel = (FMOD::ChannelControl *)FMODAudioEngine::getActiveMusicChannel(a1, a4); if ( ActiveMusicChannel ) { v8 = ActiveMusicChannel; FMODAudioEngine::stopAndGetFade(a1, ActiveMusicChannel); *(_DWORD *)(a1 + 536) = FMOD::ChannelControl::getDSPClock(v8, nullptr, (unsigned __int64 *)v13); *(_DWORD *)(a1 + 536) = FMOD::ChannelControl::addFadePoint(v8, *(unsigned __int64 *)v13, 0.0); if ( *(__int64 *)v13 < 0 ) v9 = (float)(int)((*(_QWORD *)v13 >> 1) | v13[0]) + (float)(int)((*(_QWORD *)v13 >> 1) | v13[0]); else v9 = (float)*(int *)v13; *(_DWORD *)(a1 + 536) = FMOD::ChannelControl::addFadePoint( v8, (unsigned int)(int)(float)((float)((float)*(int *)(a1 + 540) * v14) + v9), 1.0); } } v10 = (FMOD::ChannelControl *)FMODAudioEngine::getActiveMusicChannel(a1, a4); if ( v10 ) FMOD::ChannelControl::setPaused(v10, 0); v13[0] = 0; FMOD::ChannelControl::getPaused(*(FMOD::ChannelControl **)(a1 + 480), v13); FMODAudioEngine::getActiveMusicChannel(a1, a4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source