mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 09:31:15 +02:00
This "should" fix the double execution Prompt issue
This commit is contained in:
@@ -380,7 +380,7 @@ bool NyquistEffect::SetAutomationParameters(EffectAutomationParameters & parms)
|
|||||||
|
|
||||||
bool NyquistEffect::Init()
|
bool NyquistEffect::Init()
|
||||||
{
|
{
|
||||||
if (!mExternal)
|
if (!mIsPrompt && !mExternal)
|
||||||
{
|
{
|
||||||
//TODO: If we want to auto-add parameters from spectral selection,
|
//TODO: If we want to auto-add parameters from spectral selection,
|
||||||
//we will need to modify this test.
|
//we will need to modify this test.
|
||||||
@@ -400,6 +400,13 @@ bool NyquistEffect::Init()
|
|||||||
return true;
|
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 NyquistEffect::Process()
|
||||||
{
|
{
|
||||||
bool success = true;
|
bool success = true;
|
||||||
|
@@ -93,6 +93,7 @@ public:
|
|||||||
// Effect implementation
|
// Effect implementation
|
||||||
|
|
||||||
virtual bool Init();
|
virtual bool Init();
|
||||||
|
virtual bool CheckWhetherSkipEffect();
|
||||||
virtual bool Process();
|
virtual bool Process();
|
||||||
virtual bool ShowInterface(wxWindow *parent, bool forceModal = false);
|
virtual bool ShowInterface(wxWindow *parent, bool forceModal = false);
|
||||||
virtual void PopulateOrExchange(ShuttleGui & S);
|
virtual void PopulateOrExchange(ShuttleGui & S);
|
||||||
|
Reference in New Issue
Block a user