1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-09 14:43:57 +01:00

Allow chains to use current/factory presets/settings

Also gives builtin effects a mean to determine if batch processing
is active, IsBatchProcessing() returns true if so.
This commit is contained in:
Leland Lucius
2015-04-26 16:41:05 -05:00
parent 56e8f577bc
commit 4f4acffad1
16 changed files with 620 additions and 174 deletions

View File

@@ -21,6 +21,12 @@ effects.
#ifndef __AUDACITY_EFFECTMANAGER__
#define __AUDACITY_EFFECTMANAGER__
#include <wx/choice.h>
#include <wx/dialog.h>
#include <wx/event.h>
#include <wx/listbox.h>
#include <wx/string.h>
#include "audacity/EffectInterface.h"
#include "../PluginManager.h"
#include "Effect.h"
@@ -65,7 +71,8 @@ public:
TrackList *list,
TrackFactory *factory,
SelectedRegion *selectedRegion,
bool shouldPrompt = true);
bool shouldPrompt = true,
bool isBatch = false);
wxString GetEffectName(const PluginID & ID);
wxString GetEffectIdentifier(const PluginID & ID);
@@ -76,6 +83,8 @@ public:
wxString GetEffectParameters(const PluginID & ID);
bool SetEffectParameters(const PluginID & ID, const wxString & params);
bool PromptUser(const PluginID & ID, wxWindow *parent);
bool HasPresets(const PluginID & ID);
wxString GetPreset(const PluginID & ID, wxWindow * parent);
// Realtime effect processing
bool RealtimeIsActive();
@@ -126,6 +135,7 @@ private:
friend class EffectRack;
#endif
};