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

Method GetFactoryPresets

libraries/lib-vst/VSTEffectBase.cpp:230–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230RegistryPaths VSTEffectBase::GetFactoryPresets() const
231{
232 RegistryPaths progs;
233
234 // Some plugins, like Guitar Rig 5, only report 128 programs while they have hundreds. While
235 // I was able to come up with a hack in the Guitar Rig case to gather all of the program names
236 // it would not let me set a program outside of the first 128.
237 if (mVstVersion >= 2)
238 {
239 for (int i = 0; i < mAEffect->numPrograms; i++)
240 {
241 progs.push_back(GetString(effGetProgramNameIndexed, i));
242 }
243 }
244
245 return progs;
246}
247
248OptionalMessage
249VSTEffectBase::LoadFactoryPreset(int id, EffectSettings& settings) const

Callers

nothing calls this directly

Calls 2

GetStringFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected