Mercurial > hg > vamp-plugin-sdk
diff 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 |
line wrap: on
line diff
--- a/vamp-sdk/Plugin.h Thu Mar 28 13:40:38 2013 +0000 +++ b/vamp-sdk/Plugin.h Thu Mar 28 15:49:17 2013 +0000 @@ -321,7 +321,7 @@ OutputDescriptor() : // defaults for mandatory non-class-type members hasFixedBinCount(false), hasKnownExtents(false), isQuantized(false), - sampleType(OneSamplePerStep), hasDuration(false) { } + sampleType(OneSamplePerStep), sampleRate(0), hasDuration(false) { } }; typedef std::vector<OutputDescriptor> OutputList;