1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-13 16:15:48 +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; return true;
} }
bool EffectDtmf::Init()
{
Recalculate();
return true;
}
void EffectDtmf::PopulateOrExchange(ShuttleGui & S) void EffectDtmf::PopulateOrExchange(ShuttleGui & S)
{ {
// dialog will be passed values from effect // dialog will be passed values from effect

View File

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