//
// FMODAudioEngine::playMusic from 0x3eff80 to 0x3f002a (170 bytes)
//
// 6 xrefs:
// > PlayLayer::playPracticeMusic @ 0x402d28
// > GameManager::fadeInMusic @ 0x4156e8
// > GameManager::playMenuMusic @ 0x41689c
// > CustomSongWidget::onPlayback @ 0x4e30d0
// > GJShopLayer::showReactMessage @ 0x61226c
// > GJShopLayer::init @ 0x613148
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:12 +0000
//
FMODAudioEngine *__fastcall FMODAudioEngine::playMusic(
FMODAudioEngine *result,
int a2,
char a3,
float a4,
unsigned int a5)
{
FMODAudioEngine *v6; // r6
FMOD::ChannelControl *v8; // r0
bool v9; // [sp+1Fh] [bp-11h] BYREF
int v10[3]; // [sp+20h] [bp-10h] BYREF
v6 = result;
if ( *((_DWORD *)result + 90) )
{
std::string::basic_string(v10, a2);
FMODAudioEngine::loadMusic((int)v6, (unsigned __int8 *)v10, 1.0, 0, 1.0, a3, a5, 0, 0);
std::string::~string((int)v10);
if ( a4 > 0.0 )
FMODAudioEngine::fadeInMusic(v6, a4, a5);
FMODAudioEngine::resumeMusic(v6, a5);
v8 = *((FMOD::ChannelControl **)v6 + 90);
v9 = 0;
FMOD::ChannelControl::getPaused(v8, &v9);
return (FMODAudioEngine *)FMODAudioEngine::getActiveMusicChannel(v6, a5);
}
return result;
}