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

Method FindInstance

libraries/lib-effects/EffectBase.cpp:239–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239auto EffectBase::FindInstance(EffectPlugin &plugin)
240 -> std::optional<InstancePointer>
241{
242 auto result = plugin.MakeInstance();
243 if (auto pInstanceEx = std::dynamic_pointer_cast<EffectInstanceEx>(result)
244 ; pInstanceEx && pInstanceEx->Init())
245 return { pInstanceEx };
246 return {};
247}
248
249auto EffectBase::DefaultInstanceFinder(EffectPlugin &plugin) -> InstanceFinder
250{

Callers

nothing calls this directly

Calls 2

MakeInstanceMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected