// // CustomSFXWidget::onPlayback from 0x56dc30 to 0x56dcc0 (144 bytes) // // 1 xrefs: // > CustomSFXWidget::downloadSFXFinished @ 0x56f114 // // 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 CustomSFXWidget::onPlayback(CustomSFXWidget *a1, cocos2d::CCObject *a2) { FMODAudioEngine *v3; // r0 CustomSFXDelegate *m_delegate; // r0 FMODAudioEngine *v5; // r7 MusicDownloadManager *v6; // r0 char *v7; // [sp+4h] [bp-10h] BYREF _BYTE v8[4]; // [sp+8h] [bp-Ch] BYREF if ( a1->m_sfxObject ) { v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllEffects(v3); m_delegate = a1->m_delegate; if ( !m_delegate || !((int (__fastcall *)(CustomSFXDelegate *, SFXInfoObject *))m_delegate->overridePlaySFX)( m_delegate, a1->m_sfxObject) ) { v5 = FMODAudioEngine::sharedEngine(); v6 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSFX((MusicDownloadManager *)&v7, v6, a1->m_sfxObject->m_sfxID); sub_776584((int)v8, v7); FMODAudioEngine::playEffectAsync(v5, (int)v8); sub_774008(v8); sub_774008(&v7); } } }