mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 22:23:59 +01:00
Bug 1649 - Freeze with Truncate Silence
This commit is contained in:
@@ -486,6 +486,10 @@ bool EffectTruncSilence::DoRemoval
|
|||||||
if (t->GetEndTime() < r->start)
|
if (t->GetEndTime() < r->start)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// Don't waste time cutting nothing.
|
||||||
|
if( cutLen == 0.0 )
|
||||||
|
continue;
|
||||||
|
|
||||||
double cutStart = (r->start + r->end - cutLen) / 2;
|
double cutStart = (r->start + r->end - cutLen) / 2;
|
||||||
double cutEnd = cutStart + cutLen;
|
double cutEnd = cutStart + cutLen;
|
||||||
if (t->GetKind() == Track::Wave)
|
if (t->GetKind() == Track::Wave)
|
||||||
|
|||||||
Reference in New Issue
Block a user