//
// FMODAudioEngine::isMusicPlaying_1 from 0x140062930 to 0x14006299d (109 bytes)
//
// 14 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x140062bbf
// > FMODAudioEngine::isPersistentMatchPlaying @ 0x140063a03
// > SongOptionsLayer::onPlayback @ 0x1401661f6
// > SongOptionsLayer::onPlayback @ 0x1401663f9
// > CustomSongWidget::onPlayback @ 0x14016bdc0
// > CustomSongWidget::onPlayback @ 0x14016bf64
// > GJBaseGameLayer::update @ 0x140341d82
// > DrawGridLayer::update @ 0x14040a731
// > MusicBrowser::update @ 0x14047bb45
// > MusicBrowser::sliderEnded @ 0x14047c1ae
// > SetupSongTriggerPopup::onPlayback @ 0x1405f33fd
// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x1405f380a
// > SetupSongTriggerPopup::onClose @ 0x1405f3b75
// > ??> @ 0x140910be0
//
// 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:25:44 +0000
//
bool __fastcall FMODAudioEngine::isMusicPlaying_1(_QWORD *a1, int a2)
{
__int64 v3; // rax
__int64 v4; // rax
_BYTE v6[24]; // [rsp+20h] [rbp-18h] BYREF
int v7; // [rsp+40h] [rbp+8h] BYREF
char v8; // [rsp+48h] [rbp+10h] BYREF
v7 = a2;
v8 = 1;
if ( sub_140066B50(a1 + 40, &v7) )
{
v3 = sub_140068620(a1 + 40, v6, &v7);
v4 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v3 + 24LL));
if ( v4 )
FMOD::ChannelControl::getPaused(v4, &v8);
}
return v8 == 0;
}