Mercurial > hg > svcore
diff transform/TransformDescription.h @ 487:c45e6c6722e0
* Use enum for transform type instead of trying to do dumb things like
compare translated strings
author | Chris Cannam |
---|---|
date | Fri, 21 Nov 2008 13:37:35 +0000 |
parents | 957e6a5c8495 |
children | 45e95de8b11d |
line wrap: on
line diff
--- a/transform/TransformDescription.h Thu Nov 20 14:58:52 2008 +0000 +++ b/transform/TransformDescription.h Fri Nov 21 13:37:35 2008 +0000 @@ -45,8 +45,16 @@ struct TransformDescription { + enum Type { + Analysis, // e.g. vamp plugin output + Effects, // e.g. ladspa plugin with audio in and out + EffectsData, // e.g. control output of ladspa plugin + Generator, // e.g. audio out of ladspa plugin with no audio in + UnknownType + }; + TransformDescription() { } - TransformDescription(QString _type, QString _category, + TransformDescription(Type _type, QString _category, TransformId _identifier, QString _name, QString _friendlyName, QString _description, QString _longDescription, @@ -57,7 +65,7 @@ longDescription(_longDescription), maker(_maker), units(_units), configurable(_configurable) { } - QString type; // e.g. feature extraction plugin + Type type; QString category; // e.g. time > onsets TransformId identifier; // e.g. vamp:vamp-aubio:aubioonset QString name; // plugin's name if 1 output, else "name: output"