mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-18 09:00:07 +02:00
Bug 717 - Truncate Silence outLength calculation.
This commit is contained in:
parent
b216e802a3
commit
fbf9ca213c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user