Mercurial > hg > sonic-visualiser
diff audioio/AudioCallbackPlaySource.cpp @ 14:085f34c73939
* IntegerTimeStretcher -> PhaseVocoderTimeStretcher (no longer confined to
integer multiples)
author | Chris Cannam |
---|---|
date | Wed, 13 Sep 2006 11:06:28 +0000 |
parents | 00ed645f4175 |
children | cc566264c935 |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Tue Sep 12 19:13:12 2006 +0000 +++ b/audioio/AudioCallbackPlaySource.cpp Wed Sep 13 11:06:28 2006 +0000 @@ -22,13 +22,13 @@ #include "base/PlayParameterRepository.h" #include "data/model/DenseTimeValueModel.h" #include "data/model/SparseOneDimensionalModel.h" -#include "IntegerTimeStretcher.h" +#include "PhaseVocoderTimeStretcher.h" #include <iostream> #include <cassert> //#define DEBUG_AUDIO_PLAY_SOURCE 1 -#define DEBUG_AUDIO_PLAY_SOURCE_PLAYING 1 +//#define DEBUG_AUDIO_PLAY_SOURCE_PLAYING 1 //const size_t AudioCallbackPlaySource::m_ringBufferSize = 102400; const size_t AudioCallbackPlaySource::m_ringBufferSize = 131071; @@ -600,7 +600,7 @@ m_stretcher[ch] = StretcherBuffer //!!! - (new IntegerTimeStretcher(factor, + (new PhaseVocoderTimeStretcher(factor, blockSize, // 128), (blockSize/2) / factor), @@ -621,7 +621,7 @@ delete m_stretchInputBuffer; } -IntegerTimeStretcher * +PhaseVocoderTimeStretcher * AudioCallbackPlaySource::TimeStretcherData::getStretcher(size_t channel) { return m_stretcher[channel].first;