//
// FMODAudioEngine::isMusicPlaying from 0x302b78 to 0x302bd2 (90 bytes)
//
// 6 xrefs:
// > GameManager::fadeInMusic @ 0x320c3c
// > GameManager::playMenuMusic @ 0x323f3e
// > CustomSongCell::onDelete @ 0x32f4a4
// > CustomSongWidget::onPlayback @ 0x3dd676
// > CustomSongWidget::updatePlaybackBtn @ 0x3ddd14
// > CustomSongWidget::deleteSong @ 0x3dfa9a
//
// 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(FMODAudioEngine *a1, int a2)
{
unsigned int v2; // r2
int v5; // r7
bool isMusicPlaying; // r6
_DWORD v8[2]; // [sp+0h] [bp-8h] BYREF
v8[0] = a1;
v8[1] = a2;
v5 = v2;
FMODAudioEngine::getActiveMusic((FMODAudioEngine *)v8, (int)a1, v2, _stack_chk_guard);
if ( sub_774DBC(v8, a2) )
isMusicPlaying = 0;
else
isMusicPlaying = FMODAudioEngine::isMusicPlaying(a1, v5);
sub_774008(v8);
return isMusicPlaying;
}