1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-07 15:49:42 +02:00

Bug 1649 - Freeze with Truncate Silence

This commit is contained in:
James Crook 2017-05-20 18:31:06 +01:00
parent b96f169e1f
commit d549dccefd

View File

@ -486,6 +486,10 @@ bool EffectTruncSilence::DoRemoval
if (t->GetEndTime() < r->start)
continue;
// Don't waste time cutting nothing.
if( cutLen == 0.0 )
continue;
double cutStart = (r->start + r->end - cutLen) / 2;
double cutEnd = cutStart + cutLen;
if (t->GetKind() == Track::Wave)