1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

Convert max silence length from ms to s before applying

This commit is contained in:
BusinessmanProgrammerSteve
2010-03-15 16:41:22 +00:00
parent 784d7913af
commit 003482266b

View File

@@ -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;