// // SetupSongTriggerPopup::onPlayback from 0x1001c3474 to 0x1001c3658 (484 bytes) // // 2 xrefs: // > sub_1001C3674 @ 0x1001c3678 // > @ 0x1007b78f0 // // 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 SetupSongTriggerPopup::onPlayback(SetupSongTriggerPopup *a1, SongInfoObject *a2) { FMODAudioEngine *v4; // x0 FMODAudioEngine *v5; // x0 float v6; // s8 float v7; // s9 float v8; // s10 float v9; // s12 float v10; // s11 float v11; // s13 float v12; // s14 FMODAudioEngine *v13; // x20 float v14; // s0 FMODAudioEngine *v15; // x0 FMODAudioEngine *v16; // x0 MusicDownloadManager *v17; // x0 std::string __p; // [xsp+8h] [xbp-88h] BYREF v4 = FMODAudioEngine::sharedEngine(); if ( FMODAudioEngine::isMusicPlaying_1(v4, 0) ) { v5 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v5, 1); } else if ( GameManager::sharedState()->m_levelEditorLayer ) { v6 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 408); v7 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 410); v8 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 409); v9 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 411); v10 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 413); v11 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 406); v12 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 404); v13 = FMODAudioEngine::sharedEngine(); MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong((unsigned int)a2->m_songID, &__p); FMODAudioEngine::sharedEngine(); v14 = FMODAudioEngine::pitchForIdx((int)v12); FMODAudioEngine::loadMusic((__int64)v13, (__int128 *)&__p, v10 != 0.0, 0, 0, 0, v14, 0.0, v11); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v15 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::setMusicTimeMS(v15, (int)v6, 0, 0); v16 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::startMusic(v16, (int)v6, (int)v7, (int)v8, (int)v9, v10 != 0.0, 0, 0, 0); } v17 = MusicDownloadManager::sharedState(); MusicDownloadManager::songStateChanged(v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source