//
// AudioEffectsLayer::audioStep from 0x78f5b8 to 0x78f66c (180 bytes)
//
// 2 xrefs:
// > PlayLayer::postUpdate @ 0x5dc27c
// > ??> @ 0x834d8
//
// 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 AudioEffectsLayer::audioStep(AudioEffectsLayer *a1, float a2)
{
cocos2d::CCArray *m_unk1c0; // x1
cocos2d::CCString *v4; // x0
cocos2d::CCString *v5; // x0
float v6; // [xsp+20h] [xbp+20h]
m_unk1c0 = a1->m_unk1c0;
a1->m_timeElapsed = a1->m_timeElapsed + a2;
if ( m_unk1c0 )
{
if ( (unsigned int)cocos2d::CCArray::count(m_unk1c0) )
{
v4 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(a1->m_unk1c0, 0);
if ( cocos2d::CCString::floatValue(v4) < a1->m_timeElapsed )
{
v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(a1->m_unk1c0, 1u);
v6 = cocos2d::CCString::floatValue(v5);
cocos2d::CCArray::removeObjectAtIndex(a1->m_unk1c0, 0, 1);
cocos2d::CCArray::removeObjectAtIndex(a1->m_unk1c0, 0, 1);
if ( !GameManager::sharedState()->m_playLayer->m_isPracticeMode )
AudioEffectsLayer::triggerEffect(a1, v6);
}
}
}
}