Mercurial > hg > vamp-plugin-sdk
diff 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 |
line wrap: on
line diff
--- a/vamp-sdk/hostext/PluginSummarisingAdapter.cpp Wed Aug 06 14:45:47 2008 +0000 +++ b/vamp-sdk/hostext/PluginSummarisingAdapter.cpp Wed Aug 06 16:18:02 2008 +0000 @@ -268,6 +268,21 @@ //!!! use timestamp to determine which segment we're on m_accumulators[output].count++; for (int i = 0; i < int(f.values.size()); ++i) { + + + //!!! we really want to associate this occurrence of this + //!!! value with the duration it covers. + + //!!! for dense values, the duration can be 1 or the sample + //!!! rate or whatever -- doesn't matter so long as it's the + //!!! same for every value. + + //!!! for sparse values, the duration should be that from this + //!!! feature to the next. + + //!!! if the feature has a duration, should be using that + //!!! instead. + m_accumulators[output].values[i].push_back(f.values[i]); } }