comparison vamp-sdk/Plugin.h @ 354:e85513153c71

Initialise rate to 0. Otherwise there's a danger plugins will change the SampleType (e.g. to VariableSampleRate) but not set the rate because they don't think they need it (when in fact it needs to be set to 0)
author Chris Cannam
date Thu, 28 Mar 2013 15:49:17 +0000
parents c97e70ed5abc
children e43186ff8854
comparison
equal deleted inserted replaced
353:bd9a63d35e71 354:e85513153c71
319 */ 319 */
320 bool hasDuration; 320 bool hasDuration;
321 321
322 OutputDescriptor() : // defaults for mandatory non-class-type members 322 OutputDescriptor() : // defaults for mandatory non-class-type members
323 hasFixedBinCount(false), hasKnownExtents(false), isQuantized(false), 323 hasFixedBinCount(false), hasKnownExtents(false), isQuantized(false),
324 sampleType(OneSamplePerStep), hasDuration(false) { } 324 sampleType(OneSamplePerStep), sampleRate(0), hasDuration(false) { }
325 }; 325 };
326 326
327 typedef std::vector<OutputDescriptor> OutputList; 327 typedef std::vector<OutputDescriptor> OutputList;
328 328
329 /** 329 /**