Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
168:d4be66d61c04 | 169:86cee2b060c7 |
---|---|
1581 m_fftModels.erase(v); | 1581 m_fftModels.erase(v); |
1582 } | 1582 } |
1583 } | 1583 } |
1584 | 1584 |
1585 if (m_fftModels.find(v) == m_fftModels.end()) { | 1585 if (m_fftModels.find(v) == m_fftModels.end()) { |
1586 m_fftModels[v] = FFTFillPair | 1586 |
1587 (new FFTModel(m_model, | 1587 FFTModel *model = new FFTModel(m_model, |
1588 m_channel, | 1588 m_channel, |
1589 m_windowType, | 1589 m_windowType, |
1590 m_windowSize, | 1590 m_windowSize, |
1591 getWindowIncrement(), | 1591 getWindowIncrement(), |
1592 fftSize, | 1592 fftSize, |
1593 true, | 1593 true, |
1594 m_candidateFillStartFrame), | 1594 m_candidateFillStartFrame); |
1595 0); | 1595 |
1596 m_fftModels[v] = FFTFillPair(model, 0); | |
1597 | |
1598 model->resume(); | |
1596 | 1599 |
1597 delete m_updateTimer; | 1600 delete m_updateTimer; |
1598 m_updateTimer = new QTimer((SpectrogramLayer *)this); | 1601 m_updateTimer = new QTimer((SpectrogramLayer *)this); |
1599 connect(m_updateTimer, SIGNAL(timeout()), | 1602 connect(m_updateTimer, SIGNAL(timeout()), |
1600 this, SLOT(fillTimerTimedOut())); | 1603 this, SLOT(fillTimerTimedOut())); |