Mercurial > hg > vamp-plugin-sdk
diff examples/ZeroCrossing.cpp @ 49:aa64a46320d4
* Rename "name" and "description" to "identifier" and "name"; add new
"description" that actually contains a description
author | cannam |
---|---|
date | Mon, 26 Feb 2007 18:08:48 +0000 |
parents | be8fdfe25693 |
children | 1982246a3902 |
line wrap: on
line diff
--- a/examples/ZeroCrossing.cpp Thu Jan 25 13:39:31 2007 +0000 +++ b/examples/ZeroCrossing.cpp Mon Feb 26 18:08:48 2007 +0000 @@ -54,15 +54,21 @@ } string -ZeroCrossing::getName() const +ZeroCrossing::getIdentifier() const { return "zerocrossing"; } string +ZeroCrossing::getName() const +{ + return "Zero Crossings"; +} + +string ZeroCrossing::getDescription() const { - return "Zero Crossings"; + return "Detect and count zero crossing points"; } string @@ -106,9 +112,10 @@ OutputList list; OutputDescriptor zc; - zc.name = "counts"; + zc.identifier = "counts"; + zc.name = "Zero Crossing Counts"; + zc.description = "The number of zero crossing points per processing block"; zc.unit = "crossings"; - zc.description = "Zero Crossing Counts"; zc.hasFixedBinCount = true; zc.binCount = 1; zc.hasKnownExtents = false; @@ -117,9 +124,10 @@ zc.sampleType = OutputDescriptor::OneSamplePerStep; list.push_back(zc); - zc.name = "zerocrossings"; + zc.identifier = "zerocrossings"; + zc.name = "Zero Crossings"; + zc.description = "The locations of zero crossing points"; zc.unit = ""; - zc.description = "Zero Crossings"; zc.hasFixedBinCount = true; zc.binCount = 0; zc.sampleType = OutputDescriptor::VariableSampleRate;