//
// FMODAudioEngine::isMusicPlaying_1 from 0x10013cde0 to 0x10013ce24 (68 bytes)
//
// 13 xrefs:
// > CustomSongWidget::onPlayback @ 0x1000facbc
// > CustomSongWidget::onPlayback @ 0x1000fad38
// > FMODAudioEngine::isMusicPlaying @ 0x10013cf10
// > FMODAudioEngine::isPersistentMatchPlaying @ 0x10013d354
// > SongOptionsLayer::onPlayback @ 0x1001459d0
// > SongOptionsLayer::updatePlaybackBtn @ 0x100145ad4
// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x1001c3268
// > SetupSongTriggerPopup::onPlayback @ 0x1001c34ac
// > SetupSongTriggerPopup::onClose @ 0x1001c37c0
// > GJBaseGameLayer::update @ 0x1001ff2bc
// > DrawGridLayer::update @ 0x100369848
// > MusicBrowser::update @ 0x1003c2034
// > MusicBrowser::sliderEnded @ 0x1003c21ac
//
// 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 __fastcall FMODAudioEngine::isMusicPlaying_1(FMODAudioEngine *a1, int a2)
{
FMOD::Channel *ActiveMusicChannel; // x0
char v5; // [xsp+Fh] [xbp-1h] BYREF
v5 = 1;
ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, a2);
if ( ActiveMusicChannel )
{
FMOD::ChannelControl::getPaused(ActiveMusicChannel, (bool *)&v5);
return v5 ^ 1;
}
else
{
return 0;
}
}