//
// MusicBrowser::sliderEnded from 0x1003c2190 to 0x1003c220c (124 bytes)
//
// 2 xrefs:
// > j_MusicBrowser::sliderEnded @ 0x1003c220c
// > ??> @ 0x100812250
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall MusicBrowser::sliderEnded(MusicBrowser *a1, Slider *a2)
{
FMODAudioEngine *v3; // x0
SliderThumb *Thumb; // x0
float Value; // s8
FMODAudioEngine *v6; // x0
unsigned int v7; // w19
FMODAudioEngine *v8; // x0
v3 = FMODAudioEngine::sharedEngine();
if ( FMODAudioEngine::isMusicPlaying_1(v3, 0) )
{
Thumb = Slider::getThumb(a2);
Value = SliderThumb::getValue(Thumb);
v6 = FMODAudioEngine::sharedEngine();
v7 = (unsigned int)(float)(Value * (float)FMODAudioEngine::getMusicLengthMS(v6, 0));
v8 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::setMusicTimeMS(v8, v7, 0, 0);
}
}