* Various tweaks to improve performance at large ratios

This commit is contained in:
Chris Cannam
2007-11-16 22:22:01 +00:00
parent 94f85c2db4
commit 35dc16b611
4 changed files with 39 additions and 9 deletions

View File

@@ -183,12 +183,12 @@ RubberBandPitchShifter::RubberBandPitchShifter(int sampleRate, size_t channels)
m_extraLatency(8192), //!!! this should be at least the maximum possible displacement from linear at input rates, divided by the pitch scale factor. It could be very large
m_stretcher(new RubberBand::RubberBandStretcher
(sampleRate, channels,
RubberBand::RubberBandStretcher::OptionProcessRealTime |
RubberBand::RubberBandStretcher::OptionStretchPrecise |
RubberBand::RubberBandStretcher::OptionProcessRealTime)),// |
// RubberBand::RubberBandStretcher::OptionStretchPrecise |
// RubberBand::RubberBandStretcher::OptionTransientsSmooth |
RubberBand::RubberBandStretcher::OptionTransientsCrisp |
RubberBand::RubberBandStretcher::OptionPhasePeakLocked |
RubberBand::RubberBandStretcher::OptionThreadingNone)),
// RubberBand::RubberBandStretcher::OptionTransientsCrisp |
// RubberBand::RubberBandStretcher::OptionPhasePeakLocked |
// RubberBand::RubberBandStretcher::OptionThreadingNone)),
m_sampleRate(sampleRate),
m_channels(channels)
{