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

Method HasPresets

libraries/lib-effects/EffectManager.cpp:121–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121bool EffectManager::HasPresets(const PluginID & ID)
122{
123 auto effect = GetEffect(ID);
124
125 if (!effect)
126 {
127 return false;
128 }
129
130 return GetUserPresets(*effect).size() > 0 ||
131 effect->GetDefinition().GetFactoryPresets().size() > 0 ||
132 HasCurrentSettings(*effect) ||
133 HasFactoryDefaults(*effect);
134}
135
136// This function is used only in the macro programming user interface
137wxString EffectManager::GetPreset(

Callers 2

OnItemSelectedMethod · 0.80
SetCommandAndParamsMethod · 0.80

Calls 6

GetEffectFunction · 0.85
GetUserPresetsFunction · 0.85
HasCurrentSettingsFunction · 0.85
HasFactoryDefaultsFunction · 0.85
sizeMethod · 0.45
GetFactoryPresetsMethod · 0.45

Tested by

no test coverage detected