//
// FMODAudioEngine::pitchForIdx from 0x10013b418 to 0x10013b560 (328 bytes)
//
// 19 xrefs:
// > SetupSFXPopup::onClose @ 0x100180d58
// > SetupSFXPopup::updateLength @ 0x100180e50
// > SetupSongTriggerPopup::updateLength @ 0x1001c3224
// > SetupSongTriggerPopup::onPlayback @ 0x1001c3598
// > GJBaseGameLayer::activateSongTrigger @ 0x100202e40
// > GJBaseGameLayer::applySFXEditTrigger @ 0x100205330
// > GJBaseGameLayer::activatedAudioTrigger @ 0x100205ba8
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206664
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x100206d90
// > GJBaseGameLayer::processSongState @ 0x100207128
// > GJBaseGameLayer::processSongState @ 0x100207228
// > GameManager::playSFXTrigger @ 0x100312514
// > GameManager::playSFXTrigger @ 0x100312528
// > GameManager::playSFXTrigger @ 0x100312580
// > GameManager::playSFXTrigger @ 0x100312594
// > GameManager::playSFXTrigger @ 0x1003125ac
// > GameManager::playSFXTrigger @ 0x100312614
// > GameManager::playSFXTrigger @ 0x100312628
// > GameManager::playSFXTrigger @ 0x100312640
//
// 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
//
float __fastcall FMODAudioEngine::pitchForIdx(int a1)
{
float v1; // s1
float result; // s0
v1 = 0.5;
result = 1.0;
switch ( a1 )
{
case -12:
return v1;
case -11:
return 0.52973;
case -10:
return 0.56123;
case -9:
return 0.5946;
case -8:
return 0.62996;
case -7:
return 0.66742;
case -6:
return 0.70711;
case -5:
return 0.74915;
case -4:
return 0.7937;
case -3:
return 0.8409;
case -2:
return 0.8909;
case -1:
return 0.94387;
case 0:
return result;
case 1:
return 1.0595;
case 2:
return 1.1226;
case 3:
return 1.1892;
case 4:
return 1.2599;
case 5:
return 1.3348;
case 6:
return 1.4142;
case 7:
return 1.4983;
case 8:
return 1.5874;
case 9:
return 1.6818;
case 10:
return 1.7818;
case 11:
return 1.8877;
case 12:
return 2.0;
default:
return 1.0;
}
}