From b5af4d612043fd1c070d5962a2a5325749cd7c99 Mon Sep 17 00:00:00 2001 From: martynshaw99 Date: Thu, 5 Dec 2013 00:29:17 +0000 Subject: [PATCH] Steve's patch for bug 434, let's get that closed off! --- src/effects/TruncSilence.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/effects/TruncSilence.cpp b/src/effects/TruncSilence.cpp index 4a67a89c2..5fce41e38 100644 --- a/src/effects/TruncSilence.cpp +++ b/src/effects/TruncSilence.cpp @@ -285,9 +285,8 @@ bool EffectTruncSilence::Process() } // Intersection may create regions smaller than allowed; ignore them. - // FIXME: See http://bugzilla.audacityteam.org/show_bug.cgi?id=434#c10 and - // http://bugzilla.audacityteam.org/show_bug.cgi?id=434#c11 about the 0.0001 fudge factor. - if ((r->end - r->start) < ((mTruncInitialAllowedSilentMs / 1000.0) - 0.0001)) + // Allow one nanosecond extra for consistent results with exact milliseconds of allowed silence. + if ((r->end - r->start) < ((mTruncInitialAllowedSilentMs / 1000.0) - 0.000000001)) continue; // Find new silence length as requested