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:
parent
f7a7674e97
commit
78ffcd8a1e
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user