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:
parent
a52f7f5313
commit
298e440e1b
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user