//
// OptionsLayer::musicSliderChanged from 0x1000ed358 to 0x1000ed3c4 (108 bytes)
//
// 1 xrefs:
// > OptionsLayer::customSetup @ 0x1000ece0c
//
// 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 OptionsLayer::musicSliderChanged(OptionsLayer *a1, cocos2d::CCObject *a2)
{
float Value; // s0
float v3; // s8
FMODAudioEngine *v4; // x0
float BackgroundMusicVolume; // s9
FMODAudioEngine *v6; // x0
GameManager *v7; // x0
Value = SliderThumb::getValue((SliderThumb *)a2);
if ( Value >= 0.03 )
v3 = Value;
else
v3 = 0.0;
v4 = FMODAudioEngine::sharedEngine();
BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v4);
v6 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::setBackgroundMusicVolume(v6, v3);
if ( BackgroundMusicVolume <= 0.0 && v3 > 0.0 )
{
v7 = GameManager::sharedState();
GameManager::playMenuMusic(v7);
}
}