Mercurial > hg > vamp-plugin-sdk
changeset 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 | bd9a63d35e71 |
children | 3649dd60d2b1 |
files | vamp-sdk/Plugin.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;