comparison vamp-sdk/hostext/PluginSummarisingAdapter.cpp @ 178:a5ede8515893

* note in comment
author cannam
date Wed, 06 Aug 2008 16:18:02 +0000
parents 2258794251be
children 9a58bd07aa4d
comparison
equal deleted inserted replaced
177:2258794251be 178:a5ede8515893
266 RealTime timestamp) 266 RealTime timestamp)
267 { 267 {
268 //!!! use timestamp to determine which segment we're on 268 //!!! use timestamp to determine which segment we're on
269 m_accumulators[output].count++; 269 m_accumulators[output].count++;
270 for (int i = 0; i < int(f.values.size()); ++i) { 270 for (int i = 0; i < int(f.values.size()); ++i) {
271
272
273 //!!! we really want to associate this occurrence of this
274 //!!! value with the duration it covers.
275
276 //!!! for dense values, the duration can be 1 or the sample
277 //!!! rate or whatever -- doesn't matter so long as it's the
278 //!!! same for every value.
279
280 //!!! for sparse values, the duration should be that from this
281 //!!! feature to the next.
282
283 //!!! if the feature has a duration, should be using that
284 //!!! instead.
285
271 m_accumulators[output].values[i].push_back(f.values[i]); 286 m_accumulators[output].values[i].push_back(f.values[i]);
272 } 287 }
273 } 288 }
274 289
275 void 290 void