Mercurial > hg > vamp-plugin-sdk
comparison rdf/generator/template-generator.cpp @ 168:006a775133b1
* Re-do the way the v2 structure (with durations) is returned.
I bungled backward compatibility -- I failed to spot the contiguous
array returned from process()... duh. Also bump library versions.
author | cannam |
---|---|
date | Thu, 24 Jul 2008 16:50:11 +0000 |
parents | 64709b340651 |
children | 27cfae2a4155 |
comparison
equal
deleted
inserted
replaced
167:31eda4b11f2b | 168:006a775133b1 |
---|---|
184 //DenseOutput | 184 //DenseOutput |
185 //SparseOutput | 185 //SparseOutput |
186 //TrackLevelOutput | 186 //TrackLevelOutput |
187 | 187 |
188 | 188 |
189 //SparseOutput: variable sample rate. Events are not evenly spaced so we need to record the time associated with the event as it its not ensured that we have an event after the next one (but there is not time to set the duration, it has to be calculated as the different between 2 different events). The timestamp must be read. | 189 // SparseOutput: variable sample rate. Events are not evenly |
190 // spaced so we need to record the time associated with the event | |
191 // as it its not ensured that we have an event after the next one | |
192 // (but there is not time to set the duration, it has to be | |
193 // calculated as the different between 2 different events). The | |
194 // timestamp must be read. | |
190 | 195 |
191 string res; | 196 string res; |
192 | 197 |
193 if (o.sampleType == Plugin::OutputDescriptor::VariableSampleRate) | 198 if (o.sampleType == Plugin::OutputDescriptor::VariableSampleRate || |
199 !o.hasFixedBinCount) | |
194 { | 200 { |
195 | 201 |
196 res=\ | 202 res=\ |
197 "plugbase:"+plugin->getIdentifier()+"_output_"+o.identifier+" a vamp:SparseOutput ;\n\ | 203 "plugbase:"+plugin->getIdentifier()+"_output_"+o.identifier+" a vamp:SparseOutput ;\n\ |
198 vamp:identifier \""+o.identifier+"\" ;\n\ | 204 vamp:identifier \""+o.identifier+"\" ;\n\ |