1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-02 17:23:18 +02:00

Fix compilation of EXPERIMENTAL_EFFECTS_RACK again

This commit is contained in:
Paul Licameli 2018-02-24 17:07:22 -05:00
parent a52f7f5313
commit 298e440e1b
2 changed files with 2 additions and 7 deletions

View File

@ -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;

View File

@ -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;