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:
@@ -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
|
||||
|
||||
@@ -52,6 +52,7 @@ public:
|
||||
// Effect implementation
|
||||
|
||||
virtual bool Startup();
|
||||
virtual bool Init();
|
||||
virtual void PopulateOrExchange(ShuttleGui & S);
|
||||
virtual bool TransferDataFromWindow();
|
||||
virtual bool TransferDataToWindow();
|
||||
|
||||
Reference in New Issue
Block a user