//
// MusicBrowser::sliderEnded from 0x1006e9640 to 0x1006e96b4 (116 bytes)
//
// 2 xrefs:
// > sub_1006E96C0 @ 0x1006e96c5
// > ??> @ 0x100b94578
//
// 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:35:48 +0000
//
char __fastcall MusicBrowser::sliderEnded(__int64 a1, __int64 a2)
{
__int64 v2; // rax
char result; // al
float *Thumb; // rax
__int64 v5; // rax
int v6; // ebx
__int64 v7; // rax
float v8; // [rsp+0h] [rbp-Ch]
v2 = FMODAudioEngine::sharedEngine();
result = FMODAudioEngine::isMusicPlaying_1(v2, 0);
if ( result )
{
Thumb = (float *)Slider::getThumb(a2);
v8 = SliderThumb::getValue(Thumb).f32[0];
v5 = FMODAudioEngine::sharedEngine();
v6 = (int)(float)((float)(int)FMODAudioEngine::getMusicLengthMS(v5, 0) * v8);
v7 = FMODAudioEngine::sharedEngine();
return FMODAudioEngine::setMusicTimeMS(v7, v6, 0, 0);
}
return result;
}