* update from personal repo

This commit is contained in:
Chris Cannam
2008-07-04 19:31:23 +00:00
parent 86462dbd9f
commit f894f7c66f
5 changed files with 67 additions and 18 deletions

View File

@@ -236,7 +236,7 @@ RubberBandStretcher::Impl::setPitchScale(double fs)
}
if (fs == m_pitchScale) return;
bool was1 = (m_pitchScale == 1.f);
bool rbs = resampleBeforeStretching();
@@ -247,9 +247,7 @@ RubberBandStretcher::Impl::setPitchScale(double fs)
if (!(m_options & OptionPitchHighConsistency) &&
(was1 || resampleBeforeStretching() != rbs) &&
m_pitchScale != 1.f) {
cerr << "reset resampler" << endl;
// resampling mode has changed
for (int c = 0; c < m_channels; ++c) {
if (m_channelData[c]->resampler) {