comparison vamp-sdk/Plugin.h @ 192:d4fbd4e6fdbf

* Add hasDuration to output descriptor as well as the features themselves
author cannam
date Thu, 18 Sep 2008 16:08:28 +0000
parents 1982246a3902
children 5ee166dccfff
comparison
equal deleted inserted replaced
191:d1bdcd4a226f 192:d4fbd4e6fdbf
303 * will be 1/sampleRate seconds). It's recommended to set 303 * will be 1/sampleRate seconds). It's recommended to set
304 * this to zero if that behaviour is not desired. 304 * this to zero if that behaviour is not desired.
305 */ 305 */
306 float sampleRate; 306 float sampleRate;
307 307
308 /**
309 * True if the returned results for this output are known to
310 * have a duration field.
311 */
312 bool hasDuration;
313
308 OutputDescriptor() : // defaults for mandatory non-class-type members 314 OutputDescriptor() : // defaults for mandatory non-class-type members
309 hasFixedBinCount(false), hasKnownExtents(false), isQuantized(false), 315 hasFixedBinCount(false), hasKnownExtents(false), isQuantized(false),
310 sampleType(OneSamplePerStep) { } 316 sampleType(OneSamplePerStep), hasDuration(false) { }
311 }; 317 };
312 318
313 typedef std::vector<OutputDescriptor> OutputList; 319 typedef std::vector<OutputDescriptor> OutputList;
314 320
315 /** 321 /**