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

Method DoEffect

src/DoEffect.cpp:30–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28} // namespace
29
30bool EffectUI::DoEffect(
31 const PluginID& ID, AudacityProject& project, unsigned flags)
32{
33 auto getShowEffectHostInterfaceCb =
34 [window = &GetProjectFrame(project)](
35 Effect& effect, std::shared_ptr<EffectInstance>& pInstance,
36 SimpleEffectSettingsAccess& access) {
37 const auto pServices = dynamic_cast<EffectUIServices*>(&effect);
38 return pServices && pServices->ShowHostInterface(
39 effect, *window, EffectUI::DialogFactory,
40 pInstance, access, true);
41 };
42 auto selectAllIfNoneCb = [&]() {
43 SelectUtilities::SelectAllIfNone(project);
44 };
45 return AudacityApplicationLogic::DoEffect(
46 ID, project, flags, std::move(getShowEffectHostInterfaceCb),
47 StopPlaybackCb(project), std::move(selectAllIfNoneCb));
48}

Callers

nothing calls this directly

Calls 4

SelectAllIfNoneFunction · 0.85
moveFunction · 0.85
StopPlaybackCbFunction · 0.85
ShowHostInterfaceMethod · 0.45

Tested by

no test coverage detected