1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-18 17:10:05 +02:00

Bug 717 - Truncate Silence outLength calculation.

This commit is contained in:
stevethefiddle@gmail.com 2014-05-17 14:54:26 +00:00
parent b216e802a3
commit fbf9ca213c

View File

@ -293,13 +293,13 @@ bool EffectTruncSilence::Process()
switch (mProcessIndex) {
case 0:
outLength = mTruncLongestAllowedSilence;
outLength = wxMin(mTruncLongestAllowedSilence, inLength);
break;
case 1:
outLength = mInitialAllowedSilence +
(inLength - mInitialAllowedSilence) * mSilenceCompressPercent / 100.0;
break;
default:
default: // Not currently used.
outLength = wxMin(mInitialAllowedSilence +
(inLength - mInitialAllowedSilence) * mSilenceCompressPercent / 100.0,
mTruncLongestAllowedSilence);