Mercurial > hg > svcore
comparison data/model/FFTModel.cpp @ 1281:6463046bd21d 3.0-integration
Debug note when we overrun end of data
author | Chris Cannam |
---|---|
date | Wed, 23 Nov 2016 10:34:45 +0000 |
parents | bac86d3fc6c9 |
children | 12a1da4719c7 |
comparison
equal
deleted
inserted
replaced
1280:c97a28a3baeb | 1281:6463046bd21d |
---|---|
267 | 267 |
268 auto data = m_model->getData(m_channel, | 268 auto data = m_model->getData(m_channel, |
269 range.first, | 269 range.first, |
270 range.second - range.first); | 270 range.second - range.first); |
271 | 271 |
272 if (data.empty()) { | |
273 SVDEBUG << "NOTE: empty source data for range (" << range.first << "," | |
274 << range.second << ") (model end frame " | |
275 << m_model->getEndFrame() << ")" << endl; | |
276 } | |
277 | |
272 // don't return a partial frame | 278 // don't return a partial frame |
273 data.resize(range.second - range.first, 0.f); | 279 data.resize(range.second - range.first, 0.f); |
274 | 280 |
275 if (pfx > 0) { | 281 if (pfx > 0) { |
276 vector<float> pad(pfx, 0.f); | 282 vector<float> pad(pfx, 0.f); |