MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetPluginDesc

Function GetPluginDesc

Source/VSTPlugin.cpp:197–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 bool GetPluginDesc(juce::PluginDescription& desc, juce::String pluginId)
198 {
199 auto types = TheSynth->GetKnownPluginList().getTypes();
200 auto cutId = cutOffIdHash(pluginId);
201
202 for (int i = 0; i < types.size(); ++i)
203 {
204 if (types[i].createIdentifierString() == pluginId)
205 {
206 desc = types[i];
207 return true;
208 }
209 }
210
211 for (int i = 0; i < types.size(); ++i)
212 {
213 if (cutOffIdHash(types[i].createIdentifierString()) == cutId)
214 {
215 desc = types[i];
216 return true;
217 }
218 }
219 return false;
220 }
221
222 void GetRecentPlugins(std::vector<PluginDescription>& recentPlugins, int num)
223 {

Callers 2

GetRecentPluginsFunction · 0.85
SetUpFromSaveDataMethod · 0.85

Calls 2

cutOffIdHashFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected