//
// FMODAudioEngine::fadeInMusic from 0x3ef510 to 0x3ef5c6 (182 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::playMusic @ 0x3effe4
// > PlayLayer::startMusic @ 0x41219c
// > GJPathPage::unlockAnimationStep3 @ 0x6d4434
//
// 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
//
void __fastcall FMODAudioEngine::fadeInMusic(FMODAudioEngine *this, float a2, unsigned int a3)
{
FMOD::Channel *ActiveMusicChannel; // r0
FMOD::ChannelControl *v6; // r6
unsigned __int64 v7; // [sp+8h] [bp-14h] BYREF
ActiveMusicChannel = (FMOD::Channel *)FMODAudioEngine::getActiveMusicChannel(this, a3);
v6 = ActiveMusicChannel;
if ( ActiveMusicChannel )
{
FMODAudioEngine::stopAndGetFade(this, ActiveMusicChannel);
*((_DWORD *)this + 97) = FMOD::ChannelControl::getDSPClock(v6, nullptr, &v7);
ERRCHECK_fn();
*((_DWORD *)this + 97) = FMOD::ChannelControl::addFadePoint(v6, v7, 0.0);
ERRCHECK_fn();
*((_DWORD *)this + 97) = FMOD::ChannelControl::addFadePoint(
v6,
(unsigned __int64)(float)((float)v7 + (float)((float)*((int *)this + 98) * a2)),
1.0);
ERRCHECK_fn();
}
}