//
// FMODAudioEngine::isMusicPlaying_1 from 0x140059d30 to 0x140059d9d (109 bytes)
//
// 14 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x140059fc1
// > FMODAudioEngine::isPersistentMatchPlaying @ 0x14005adba
// > SongOptionsLayer::onPlayback @ 0x1400c5110
// > SongOptionsLayer::onPlayback @ 0x1400c5304
// > CustomSongWidget::onPlayback @ 0x1400caf73
// > CustomSongWidget::onPlayback @ 0x1400cb113
// > GJBaseGameLayer::update @ 0x140239130
// > DrawGridLayer::update @ 0x1402e908e
// > MusicBrowser::update @ 0x1403394cc
// > MusicBrowser::sliderEnded @ 0x140339b0b
// > SetupSongTriggerPopup::onPlayback @ 0x14045d69a
// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x14045da27
// > SetupSongTriggerPopup::onClose @ 0x14045dd82
// > ??> @ 0x1406c5280
//
// 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
//
bool FMODAudioEngine::isMusicPlaying_1(FMODAudioEngine *a1, int a2)
{
__int64 v3; // rax
FMOD::Channel *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_14005F8D0(&a1->m_fmodMusic, &v7) )
{
v3 = sub_140061560(&a1->m_fmodMusic, v6, &v7);
v4 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v3 + 24LL));
if ( v4 )
FMOD::ChannelControl::getPaused(v4, (bool *)&v8);
}
return v8 == 0;
}