From 59a160eb3f5f1c3f685cabe951a9ba751b458506 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Wed, 2 Jul 2008 22:20:56 +0000 Subject: [PATCH] * whoops! initialise m_silentAudioCurve --- src/StretcherImpl.cpp | 1 + src/ladspa/RubberBandPitchShifter.cpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/StretcherImpl.cpp b/src/StretcherImpl.cpp index 51da691..c069a5f 100644 --- a/src/StretcherImpl.cpp +++ b/src/StretcherImpl.cpp @@ -78,6 +78,7 @@ RubberBandStretcher::Impl::Impl(size_t sampleRate, m_lastProcessPhaseResetDf(16), m_phaseResetAudioCurve(0), m_stretchAudioCurve(0), + m_silentAudioCurve(0), m_stretchCalculator(0), m_freq0(600), m_freq1(1200), diff --git a/src/ladspa/RubberBandPitchShifter.cpp b/src/ladspa/RubberBandPitchShifter.cpp index 4c41721..d28b086 100644 --- a/src/ladspa/RubberBandPitchShifter.cpp +++ b/src/ladspa/RubberBandPitchShifter.cpp @@ -213,9 +213,7 @@ RubberBandPitchShifter::RubberBandPitchShifter(int sampleRate, size_t channels) m_prevRatio(1.0), m_currentCrispness(-1), 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(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_extraLatency(128), m_stretcher(new RubberBandStretcher (sampleRate, channels, RubberBandStretcher::OptionProcessRealTime)),