Merge
This commit is contained in:
@@ -499,6 +499,11 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
RubberBandStretcher::Options options = 0;
|
RubberBandStretcher::Options options = 0;
|
||||||
|
|
||||||
|
//!!!
|
||||||
|
cerr << "\n\n\n\n\n*** WARNING - THIS IS A TEST VERSION ONLY\n\n\n\n\n" << endl;
|
||||||
|
options = RubberBandStretcher::OptionEngineFiner;
|
||||||
|
|
||||||
if (realtime) options |= RubberBandStretcher::OptionProcessRealTime;
|
if (realtime) options |= RubberBandStretcher::OptionProcessRealTime;
|
||||||
if (!lamination) options |= RubberBandStretcher::OptionPhaseIndependent;
|
if (!lamination) options |= RubberBandStretcher::OptionPhaseIndependent;
|
||||||
if (longwin) options |= RubberBandStretcher::OptionWindowLong;
|
if (longwin) options |= RubberBandStretcher::OptionWindowLong;
|
||||||
|
|||||||
@@ -231,9 +231,8 @@ R3StretcherImpl::process(const float *const *input, size_t samples, bool final)
|
|||||||
m_parameters.logger("R3StretcherImpl::process: WARNING: Forced to increase input buffer size. Either setMaxProcessSize was not properly called or process is being called repeatedly without retrieve.");
|
m_parameters.logger("R3StretcherImpl::process: WARNING: Forced to increase input buffer size. Either setMaxProcessSize was not properly called or process is being called repeatedly without retrieve.");
|
||||||
size_t newSize = m_channelData[0]->inbuf->getSize() - ws + samples;
|
size_t newSize = m_channelData[0]->inbuf->getSize() - ws + samples;
|
||||||
for (int c = 0; c < m_parameters.channels; ++c) {
|
for (int c = 0; c < m_parameters.channels; ++c) {
|
||||||
m_channelData[c]->inbuf =
|
auto newBuf = m_channelData[c]->inbuf->resized(newSize);
|
||||||
std::unique_ptr<RingBuffer<float>>
|
m_channelData[c]->inbuf = std::unique_ptr<RingBuffer<float>>(newBuf);
|
||||||
(m_channelData[c]->inbuf->resized(newSize));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user