mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-23 23:41:21 +02:00
Fix noise reduction
This commit is contained in:
parent
341e3e1207
commit
5d102136a2
@ -903,7 +903,7 @@ void EffectNoiseReduction::Worker::StartNewTrack()
|
|||||||
mOutStepCount = -(int)(mHistoryLen - 1)
|
mOutStepCount = -(int)(mHistoryLen - 1)
|
||||||
// ... and then must pass over the padded windows,
|
// ... and then must pass over the padded windows,
|
||||||
// before the first full window:
|
// before the first full window:
|
||||||
- (mStepsPerWindow - 1);
|
- (int)(mStepsPerWindow - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
mInSampleCount = 0;
|
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
|
Record &record = *mQueue[mHistoryLen - 1]; // end of the queue
|
||||||
const auto last = mSpectrumSize - 1;
|
const auto last = mSpectrumSize - 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user