1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-23 15:41:09 +02:00

Fix noise reduction

This commit is contained in:
Paul Licameli 2016-09-17 15:38:55 -04:00
parent 341e3e1207
commit 5d102136a2

View File

@ -903,7 +903,7 @@ void EffectNoiseReduction::Worker::StartNewTrack()
mOutStepCount = -(int)(mHistoryLen - 1)
// ... and then must pass over the padded windows,
// before the first full window:
- (mStepsPerWindow - 1);
- (int)(mStepsPerWindow - 1);
}
mInSampleCount = 0;
@ -1202,7 +1202,7 @@ void EffectNoiseReduction::Worker::ReduceNoise
}
if (mOutStepCount >= -(mStepsPerWindow - 1)) {
if (mOutStepCount >= -(int)(mStepsPerWindow - 1)) {
Record &record = *mQueue[mHistoryLen - 1]; // end of the queue
const auto last = mSpectrumSize - 1;