Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 169:86cee2b060c7
* Fix slowness in serving FFT values to feature extraction plugin transform
(failure to call resume() on FFT model)
* Fix failure to update completion from time/value model
author | Chris Cannam |
---|---|
date | Tue, 17 Oct 2006 13:49:31 +0000 |
parents | 53b9c7656798 |
children | 96b8a790730a |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Tue Oct 17 13:04:49 2006 +0000 +++ b/layer/SpectrogramLayer.cpp Tue Oct 17 13:49:31 2006 +0000 @@ -1583,16 +1583,19 @@ } if (m_fftModels.find(v) == m_fftModels.end()) { - m_fftModels[v] = FFTFillPair - (new FFTModel(m_model, - m_channel, - m_windowType, - m_windowSize, - getWindowIncrement(), - fftSize, - true, - m_candidateFillStartFrame), - 0); + + FFTModel *model = new FFTModel(m_model, + m_channel, + m_windowType, + m_windowSize, + getWindowIncrement(), + fftSize, + true, + m_candidateFillStartFrame); + + m_fftModels[v] = FFTFillPair(model, 0); + + model->resume(); delete m_updateTimer; m_updateTimer = new QTimer((SpectrogramLayer *)this);