// // FMODAudioEngine::isMusicPlaying from 0x1003e6b40 to 0x1003e6c1a (218 bytes) // // 6 xrefs: // > CustomSongCell::onDelete @ 0x100253e5b // > GameManager::playMenuMusic @ 0x1003770cb // > GameManager::fadeInMusic @ 0x10037743c // > CustomSongWidget::onPlayback @ 0x10061bfc1 // > CustomSongWidget::updatePlaybackBtn @ 0x10061e775 // > CustomSongWidget::deleteSong @ 0x10061e95f // // 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 // _BOOL8 __fastcall FMODAudioEngine::isMusicPlaying(FMODAudioEngine *a1, unsigned __int8 *a2, int a3) { unsigned int v4; // r13d char v5; // r12 size_t v6; // rbx char *p_s1; // rdi size_t v8; // r13 const void *v9; // r15 size_t v10; // rdx int v11; // eax _BOOL4 v12; // r15d FMOD::Channel *ActiveMusicChannel; // rax unsigned __int8 v15; // [rsp+8h] [rbp-48h] BYREF char __s1; // [rsp+9h] [rbp-47h] BYREF size_t v17; // [rsp+10h] [rbp-40h] void *__p; // [rsp+18h] [rbp-38h] int v19; // [rsp+20h] [rbp-30h] bool v20; // [rsp+27h] [rbp-29h] BYREF v19 = a3; FMODAudioEngine::getActiveMusic(&v15, a1); v4 = *a2; v5 = v15 & 1; if ( (v15 & 1) != 0 ) { v6 = v17; p_s1 = (char *)__p; if ( (v4 & 1) == 0 ) { LABEL_3: v8 = v4 >> 1; v9 = a2 + 1; goto LABEL_6; } } else { v6 = v15 >> 1; p_s1 = &__s1; if ( (v4 & 1) == 0 ) goto LABEL_3; } v8 = *((_QWORD *)a2 + 1); v9 = *((const void **)a2 + 2); LABEL_6: v10 = v6; if ( v8 < v6 ) v10 = v8; v11 = memcmp(p_s1, v9, v10); v12 = 0; if ( !v11 && v8 == v6 ) { v20 = 1; ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, v19); if ( ActiveMusicChannel ) { FMOD::ChannelControl::getPaused(ActiveMusicChannel, &v20); v12 = v20; LOBYTE(v12) = !v20; } else { v12 = 0; } v5 = v15 & 1; } if ( v5 ) operator delete(__p); LOBYTE(v12) = v12; return v12; }