1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 08:29:27 +02:00

This "should" fix the double execution Prompt issue

This commit is contained in:
Leland Lucius 2015-04-23 09:21:28 -05:00
parent f7a7674e97
commit 78ffcd8a1e
2 changed files with 9 additions and 1 deletions

View File

@ -380,7 +380,7 @@ bool NyquistEffect::SetAutomationParameters(EffectAutomationParameters & parms)
bool NyquistEffect::Init()
{
if (!mExternal)
if (!mIsPrompt && !mExternal)
{
//TODO: If we want to auto-add parameters from spectral selection,
//we will need to modify this test.
@ -400,6 +400,13 @@ bool NyquistEffect::Init()
return true;
}
bool NyquistEffect::CheckWhetherSkipEffect()
{
// If we're a prompt and we have controls, then we've already processed
// the audio, so skip further processing.
return (mIsPrompt && mControls.GetCount() > 0);
}
bool NyquistEffect::Process()
{
bool success = true;

View File

@ -93,6 +93,7 @@ public:
// Effect implementation
virtual bool Init();
virtual bool CheckWhetherSkipEffect();
virtual bool Process();
virtual bool ShowInterface(wxWindow *parent, bool forceModal = false);
virtual void PopulateOrExchange(ShuttleGui & S);