//
// FMODAudioEngine::setBackgroundMusicVolume from 0x1003d3ee0 to 0x1003d3f0a (42 bytes)
//
// 6 xrefs:
// > EditorPauseLayer::musicSliderChanged @ 0x10027ea94
// > GameManager::updateMusic @ 0x100369a89
// > GameManager::firstLoad @ 0x100374d8a
// > PauseLayer::musicSliderChanged @ 0x1003c1b24
// > GJKeybindManager::handleGlobalAudioAction @ 0x100615790
// > OptionsLayer::musicSliderChanged @ 0x10087bdd1
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:29:40 +0000
//
__int64 __fastcall FMODAudioEngine::setBackgroundMusicVolume(__int64 a1, float a2)
{
FMOD::ChannelControl *v2; // rdi
__int64 result; // rax
*(_DWORD *)(a1 + 452) = 0;
*(float *)(a1 + 440) = a2;
v2 = *(FMOD::ChannelControl **)(a1 + 480);
if ( v2 )
return FMOD::ChannelControl::setVolume(v2, a2);
return result;
}