//
// FMODAudioEngine::isMusicPlaying_1 from 0x1003e6a10 to 0x1003e6a4a (58 bytes)
//
// 13 xrefs:
// > DrawGridLayer::update @ 0x100101001
// > GJBaseGameLayer::update @ 0x100153139
// > SongOptionsLayer::onPlayback @ 0x1002173aa
// > SongOptionsLayer::onPlayback @ 0x100217479
// > SongOptionsLayer::updatePlaybackBtn @ 0x100217504
// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x1002d3d22
// > SetupSongTriggerPopup::onPlayback @ 0x1002d3f51
// > SetupSongTriggerPopup::onClose @ 0x1002d4317
// > GameManager::videoAdShowed @ 0x1003801e7
// > MusicBrowser::update @ 0x10060f008
// > MusicBrowser::sliderEnded @ 0x10060f183
// > CustomSongWidget::onPlayback @ 0x10061bf7e
// > CustomSongWidget::onPlayback @ 0x10061bff9
//
// 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; // rax
_BOOL8 v3; // rax
bool v5; // [rsp+Fh] [rbp-1h] BYREF
v5 = 1;
ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(a1, a2);
if ( ActiveMusicChannel )
{
FMOD::ChannelControl::getPaused(ActiveMusicChannel, &v5);
LOBYTE(v3) = !v5;
}
else
{
return 0;
}
return v3;
}