//
// FindBPMLayer::playMusic from 0x10050edf0 to 0x10050ee5e (110 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b692e0
//
// 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:31:35 +0000
//
void __fastcall FindBPMLayer::playMusic(__int64 a1)
{
__int64 v1; // r14
std::string v2; // [rsp+0h] [rbp-30h] BYREF
v1 = FMODAudioEngine::sharedEngine();
MusicDownloadManager::sharedState(a1);
MusicDownloadManager::pathForSong(&v2);
FMODAudioEngine::loadAndPlayMusic(v1, (__int128 *)&v2, (int)(float)(*(float *)(a1 + 720) * 1000.0), 0);
if ( (*(_BYTE *)&v2.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v2.__r_.__value_.__l.__data_);
}