MCPcopy Create free account
hub / github.com/audacity/audacity / ClearEffectPlugins

Method ClearEffectPlugins

libraries/lib-module-manager/PluginManager.cpp:1203–1236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1201}
1202
1203void PluginManager::ClearEffectPlugins()
1204{
1205 mEffectPluginsCleared.clear();
1206
1207 for ( auto it = mRegisteredPlugins.cbegin(); it != mRegisteredPlugins.cend(); )
1208 {
1209 const auto& desc = it->second;
1210 const auto type = desc.GetPluginType();
1211
1212 if (type == PluginTypeEffect || type == PluginTypeStub)
1213 {
1214 mEffectPluginsCleared.push_back(desc);
1215 it = mRegisteredPlugins.erase(it);
1216 }
1217 else
1218 {
1219 ++it;
1220 }
1221 }
1222
1223 // Repeat what usually happens at startup
1224 // This prevents built-in plugins to appear in the plugin validation list
1225 for (auto& [_, provider] : ModuleManager::Get().Providers())
1226 provider->AutoRegisterPlugins(*this);
1227
1228 // Remove auto registered plugins from "cleared" list
1229 for ( auto it = mEffectPluginsCleared.begin(); it != mEffectPluginsCleared.end(); )
1230 {
1231 if ( mRegisteredPlugins.find(it->GetID()) != mRegisteredPlugins.end() )
1232 it = mEffectPluginsCleared.erase(it);
1233 else
1234 ++it;
1235 }
1236}
1237
1238std::map<wxString, std::vector<wxString>> PluginManager::CheckPluginUpdates()
1239{

Callers 1

OnRescanMethod · 0.80

Calls 11

GetFunction · 0.85
cbeginMethod · 0.80
cendMethod · 0.80
GetPluginTypeMethod · 0.80
clearMethod · 0.45
push_backMethod · 0.45
AutoRegisterPluginsMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected