//
// EditorPauseLayer::volumeChanged from 0x100443134 to 0x100443188 (84 bytes)
//
// 2 xrefs:
// > sub_100443188 @ 0x10044318c
// > ??> @ 0x100964960
//
// This function is hookable on this platform (idp: arm, 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 11:05:13 +0000
//
__int64 __fastcall EditorPauseLayer::volumeChanged(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x20
__int64 v3; // x0
float BackgroundMusicVolume; // s0
__int64 v5; // x19
__int64 v6; // x0
float EffectsVolume; // s0
v1 = result;
v2 = *(_QWORD *)(result + 616);
if ( v2 )
{
v3 = FMODAudioEngine::sharedEngine();
BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v3);
result = Slider::setValue(v2, BackgroundMusicVolume);
}
v5 = *(_QWORD *)(v1 + 624);
if ( v5 )
{
v6 = FMODAudioEngine::sharedEngine();
EffectsVolume = FMODAudioEngine::getEffectsVolume(v6);
return Slider::setValue(v5, EffectsVolume);
}
return result;
}