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:
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user