Restore original behaviour of pre-fill/start-skip

This commit is contained in:
Chris Cannam
2021-05-14 15:10:24 +01:00
parent 20d3f5ed6a
commit 27a2980a56
2 changed files with 4 additions and 7 deletions

View File

@@ -1152,12 +1152,10 @@ RubberBandStretcher::Impl::writeOutput(RingBuffer<float> &to, float *from, size_
// samples, because the first chunk is centred on the start of the
// output. In RT mode we didn't apply any pre-padding in
// configure(), so we don't want to remove any here.
//!!!
size_t startSkip = 0;
if (!m_realtime) {
//!!! lock down the latency to this initial value in RT mode
startSkip = lrintf((m_sWindowSize/2) / m_pitchScale);
// startSkip = m_sWindowSize/2;
}
if (outCount > startSkip) {