mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 09:01:12 +01:00
Should fix the invalid initial duration for generator effects
This commit is contained in:
@@ -961,9 +961,7 @@ bool Effect::DoEffect(wxWindow *parent,
|
||||
SelectedRegion *selectedRegion,
|
||||
bool shouldPrompt /* = true */)
|
||||
{
|
||||
double t0 = selectedRegion->t0();
|
||||
double t1 = selectedRegion->t1();
|
||||
wxASSERT(t0 <= t1);
|
||||
wxASSERT(selectedRegion->duration() >= 0.0);
|
||||
|
||||
if (mOutputTracks)
|
||||
{
|
||||
@@ -975,8 +973,9 @@ bool Effect::DoEffect(wxWindow *parent,
|
||||
mProjectRate = projectRate;
|
||||
mParent = parent;
|
||||
mTracks = list;
|
||||
mT0 = t0;
|
||||
mT1 = t1;
|
||||
mT0 = selectedRegion->t0();
|
||||
mT1 = selectedRegion->t1();
|
||||
mDuration = GetDuration();
|
||||
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
||||
mF0 = selectedRegion->f0();
|
||||
mF1 = selectedRegion->f1();
|
||||
|
||||
Reference in New Issue
Block a user