From 298e440e1bbb22dd8543c6f361e4bca695269a0b Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 24 Feb 2018 17:07:22 -0500 Subject: [PATCH] Fix compilation of EXPERIMENTAL_EFFECTS_RACK again --- src/effects/EffectManager.cpp | 7 ------- src/effects/EffectRack.cpp | 2 ++ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/effects/EffectManager.cpp b/src/effects/EffectManager.cpp index fa4cc9729..34246c757 100644 --- a/src/effects/EffectManager.cpp +++ b/src/effects/EffectManager.cpp @@ -137,13 +137,6 @@ bool EffectManager::DoAudacityCommand(const PluginID & ID, return false; } -#if defined(EXPERIMENTAL_EFFECTS_RACK) - if (effect->SupportsRealtime()) - { - GetRack()->Add(effect); - } -#endif - bool res = command->DoAudacityCommand(parent, context, shouldPrompt); return res; diff --git a/src/effects/EffectRack.cpp b/src/effects/EffectRack.cpp index f131636c5..88f3d783f 100644 --- a/src/effects/EffectRack.cpp +++ b/src/effects/EffectRack.cpp @@ -36,6 +36,7 @@ #include "EffectManager.h" #include "EffectRack.h" +#include "../commands/CommandContext.h" #include "../Prefs.h" #include "../Project.h" @@ -305,6 +306,7 @@ void EffectRack::OnApply(wxCommandEvent & WXUNUSED(evt)) if (mPowerState[i]) { if (!project->DoEffect(mEffects[i]->GetID(), + *project, AudacityProject::OnEffectFlags::kConfigured)) // If any effect fails (or throws), then stop. return;