* whoops! initialise m_silentAudioCurve

This commit is contained in:
Chris Cannam
2008-07-02 22:20:56 +00:00
parent 87af5d6745
commit 59a160eb3f
2 changed files with 2 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ RubberBandStretcher::Impl::Impl(size_t sampleRate,
m_lastProcessPhaseResetDf(16), m_lastProcessPhaseResetDf(16),
m_phaseResetAudioCurve(0), m_phaseResetAudioCurve(0),
m_stretchAudioCurve(0), m_stretchAudioCurve(0),
m_silentAudioCurve(0),
m_stretchCalculator(0), m_stretchCalculator(0),
m_freq0(600), m_freq0(600),
m_freq1(1200), m_freq1(1200),

View File

@@ -213,9 +213,7 @@ RubberBandPitchShifter::RubberBandPitchShifter(int sampleRate, size_t channels)
m_prevRatio(1.0), m_prevRatio(1.0),
m_currentCrispness(-1), m_currentCrispness(-1),
m_currentFormant(false), m_currentFormant(false),
// 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_extraLatency(128),
// m_extraLatency(512), //!!! 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_extraLatency(128), //!!! 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 RubberBandStretcher m_stretcher(new RubberBandStretcher
(sampleRate, channels, (sampleRate, channels,
RubberBandStretcher::OptionProcessRealTime)), RubberBandStretcher::OptionProcessRealTime)),