//
// EditorPauseLayer::musicSliderChanged from 0x1401822f0 to 0x140182383 (147 bytes)
//
// 3 xrefs:
// > EditorPauseLayer::customSetup @ 0x140181f78
// > PauseLayer::customSetup @ 0x1404d7eda
// > ??> @ 0x140918be4
//
// 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 11:27:37 +0000
//
// Merged with: EditorPauseLayer::musicSliderChanged, PauseLayer::musicSliderChanged
// Hidden C++ exception states: #wind=1
__int64 __fastcall EditorPauseLayer::musicSliderChanged(__int64 a1, float *a2)
{
float Value; // xmm6_4
__int64 result; // rax
__int64 v4; // rcx
void *v5; // [rsp+48h] [rbp+10h]
Value = SliderThumb::getValue(a2);
if ( Value < 0.029999999 )
Value = 0.0;
result = qword_14090BF60;
if ( !qword_14090BF60 )
{
v5 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
result = qword_14090BF60;
}
*(_DWORD *)(result + 524) = 0;
*(float *)(result + 512) = Value;
v4 = *(_QWORD *)(result + 552);
if ( v4 )
return FMOD::ChannelControl::setVolume(v4);
return result;
}