//
// FMODAudioEngine::stopAllEffects from 0x100138c3c to 0x100138ce4 (168 bytes)
//
// 12 xrefs:
// > PlayLayer::destroyPlayer @ 0x10011ed38
// > PlayLayer::resetLevel @ 0x100121c08
// > PlayLayer::resumeAndRestart @ 0x10012296c
// > FMODAudioEngine::clearAllAudio @ 0x100138bc8
// > FMODAudioEngine::unloadAllEffects @ 0x10013cd04
// > SetupReverbPopup::onPlay @ 0x10017f9ac
// > SetupReverbPopup::onClose @ 0x10017fa00
// > SetupSFXPopup::onClose @ 0x100180c3c
// > CustomSFXWidget::onPlayback @ 0x1002f0b24
// > CustomSFXWidget::deleteSFX @ 0x1002f1388
// > LevelEditorLayer::stopPlayback @ 0x100362740
// > LevelEditorLayer::onStopPlaytest @ 0x100363540
//
// 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 FMODAudioEngine::stopAllEffects(FMODAudioEngine *a1)
{
std::__hash_node_base, void *> *>::__next_pointer i; // x20
std::__hash_node_base, void *> *>::__next_pointer j; // x20
FMOD::ChannelControl::stop(a1->m_globalChannel);
for ( i = a1->m_globalChannelGroups.__table_.__p1_.__value_.__next_; i; i = i->__next_ )
{
FMOD::ChannelControl::stop((FMOD::ChannelControl *)i[3].__next_);
FMOD::ChannelGroup::release((FMOD::ChannelGroup *)i[3].__next_);
}
for ( j = a1->m_reverbChannelGroups.__table_.__p1_.__value_.__next_; j; j = j->__next_ )
{
FMOD::ChannelControl::stop((FMOD::ChannelControl *)j[3].__next_);
FMOD::ChannelGroup::release((FMOD::ChannelGroup *)j[3].__next_);
}
sub_100018054(&a1->m_globalChannelGroups.__table_.__bucket_list_.__ptr_.__value_);
sub_100018054(&a1->m_reverbChannelGroups.__table_.__bucket_list_.__ptr_.__value_);
sub_100018054(&a1->m_audioState.m_volumeForEffectGroups.__table_.__bucket_list_.__ptr_.__value_);
sub_100018054(&a1->m_audioState.m_volumeModForEffectGroups.__table_.__bucket_list_.__ptr_.__value_);
sub_100018054(&a1->m_audioState.m_pitchForEffectGroups.__table_.__bucket_list_.__ptr_.__value_);
sub_100018054(&a1->m_audioState.m_volumeForEffectChannels.__table_.__bucket_list_.__ptr_.__value_);
sub_100018054(&a1->m_audioState.m_volumeModForEffectChannels.__table_.__bucket_list_.__ptr_.__value_);
sub_100018054(&a1->m_audioState.m_pitchForEffectChannels.__table_.__bucket_list_.__ptr_.__value_);
sub_100018054(&a1->m_audioState.m_intervalForEffects.__table_.__bucket_list_.__ptr_.__value_);
}