mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-03 22:19:07 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(EXPERIMENTAL_EFFECTS_RACK)
|
|
||||||
if (effect->SupportsRealtime())
|
|
||||||
{
|
|
||||||
GetRack()->Add(effect);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool res = command->DoAudacityCommand(parent, context, shouldPrompt);
|
bool res = command->DoAudacityCommand(parent, context, shouldPrompt);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
#include "EffectManager.h"
|
#include "EffectManager.h"
|
||||||
#include "EffectRack.h"
|
#include "EffectRack.h"
|
||||||
|
#include "../commands/CommandContext.h"
|
||||||
#include "../Prefs.h"
|
#include "../Prefs.h"
|
||||||
#include "../Project.h"
|
#include "../Project.h"
|
||||||
|
|
||||||
@ -305,6 +306,7 @@ void EffectRack::OnApply(wxCommandEvent & WXUNUSED(evt))
|
|||||||
if (mPowerState[i])
|
if (mPowerState[i])
|
||||||
{
|
{
|
||||||
if (!project->DoEffect(mEffects[i]->GetID(),
|
if (!project->DoEffect(mEffects[i]->GetID(),
|
||||||
|
*project,
|
||||||
AudacityProject::OnEffectFlags::kConfigured))
|
AudacityProject::OnEffectFlags::kConfigured))
|
||||||
// If any effect fails (or throws), then stop.
|
// If any effect fails (or throws), then stop.
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user