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

Don't push effects that can't be undone onto the Undo Stack

This commit is contained in:
Steve Daulton
2015-12-30 16:56:30 +00:00
parent 159f0263f3
commit 1d6d08c47d
8 changed files with 50 additions and 6 deletions

View File

@@ -91,7 +91,11 @@ public:
wxString GetDefaultPreset(const PluginID & ID);
void SetBatchProcessing(const PluginID & ID, bool start);
// Realtime effect processing
/** Allow effects to disable saving the state at run time */
void SetSkipStateFlag(bool flag);
bool GetSkipStateFlag();
// Realtime effect processing
bool RealtimeIsActive();
bool RealtimeIsSuspended();
void RealtimeAddEffect(Effect *effect);
@@ -135,6 +139,10 @@ private:
wxArrayInt mRealtimeChans;
wxArrayDouble mRealtimeRates;
// Set true if we want to skip pushing state
// after processing at effect run time.
bool mSkipStateFlag;
#if defined(EXPERIMENTAL_EFFECTS_RACK)
EffectRack *mRack;