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

Fix initialization when running from a chain

If the effect was run from a chain without first going into the
effect's dialog, it would error out cause the duration hadn't
been set properly.
This commit is contained in:
Leland Lucius
2015-06-07 07:08:41 -05:00
parent a13be332ff
commit b1591b5767
2 changed files with 8 additions and 0 deletions

View File

@@ -282,6 +282,13 @@ bool EffectDtmf::Startup()
return true;
}
bool EffectDtmf::Init()
{
Recalculate();
return true;
}
void EffectDtmf::PopulateOrExchange(ShuttleGui & S)
{
// dialog will be passed values from effect

View File

@@ -52,6 +52,7 @@ public:
// Effect implementation
virtual bool Startup();
virtual bool Init();
virtual void PopulateOrExchange(ShuttleGui & S);
virtual bool TransferDataFromWindow();
virtual bool TransferDataToWindow();