From 003482266b3fa4de44010a9d9fb047602b183df6 Mon Sep 17 00:00:00 2001 From: BusinessmanProgrammerSteve Date: Mon, 15 Mar 2010 16:41:22 +0000 Subject: [PATCH] Convert max silence length from ms to s before applying --- src/effects/TruncSilence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/TruncSilence.cpp b/src/effects/TruncSilence.cpp index bc35b1f57..9bd0c4203 100644 --- a/src/effects/TruncSilence.cpp +++ b/src/effects/TruncSilence.cpp @@ -590,7 +590,7 @@ bool EffectTruncSilence::Process() double inLength = r->end - r->start; double outLength = wxMin( mTruncInitialAllowedSilentMs / 1000.0 + (inLength - mTruncInitialAllowedSilentMs / 1000.0) / mSilenceCompressRatio, - mTruncLongestAllowedSilentMs); + mTruncLongestAllowedSilentMs / 1000.0); double cutLen = inLength - outLength; totalCutLen += cutLen;