mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 09:31:15 +02:00
Convert max silence length from ms to s before applying
This commit is contained in:
@@ -590,7 +590,7 @@ bool EffectTruncSilence::Process()
|
|||||||
double inLength = r->end - r->start;
|
double inLength = r->end - r->start;
|
||||||
double outLength = wxMin(
|
double outLength = wxMin(
|
||||||
mTruncInitialAllowedSilentMs / 1000.0 + (inLength - mTruncInitialAllowedSilentMs / 1000.0) / mSilenceCompressRatio,
|
mTruncInitialAllowedSilentMs / 1000.0 + (inLength - mTruncInitialAllowedSilentMs / 1000.0) / mSilenceCompressRatio,
|
||||||
mTruncLongestAllowedSilentMs);
|
mTruncLongestAllowedSilentMs / 1000.0);
|
||||||
double cutLen = inLength - outLength;
|
double cutLen = inLength - outLength;
|
||||||
totalCutLen += cutLen;
|
totalCutLen += cutLen;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user