diff PyPlugin.cpp @ 22:1ae350e97f93

* Add quantizeStep to parameter descriptor!
author cannam
date Tue, 14 Jul 2009 15:54:03 +0000
parents e9cf443b18f5
children 7d28bed0864e
line wrap: on
line diff
--- a/PyPlugin.cpp	Tue Jul 14 12:48:01 2009 +0000
+++ b/PyPlugin.cpp	Tue Jul 14 15:54:03 2009 +0000
@@ -663,7 +663,9 @@
 						break;
 					case p::isQuantized:
 						pd.isQuantized = (bool) PyInt_AS_LONG(pyValue); 
-						break;					
+						break;									case p::quantizeStep:
+						pd.quantizeStep = (float) PyFloat_AS_DOUBLE(pyValue);
+						break;
 					default : 	
 						cerr << "Invalid key in Vamp OutputDescriptor: " << PyString_AsString(pyKey) << endl; 
 				} 				
@@ -1101,6 +1103,7 @@
 	parmKeys["maxValue"] = p::maxValue;
 	parmKeys["defaultValue"] = p::defaultValue;
 	parmKeys["isQuantized"] = p::isQuantized;
+	parmKeys["quantizeStep"] = p::quantizeStep;
 
 	isMapInitialised = true;
 	return true;