Mercurial > hg > vampy
comparison PyExtensionModule.cpp @ 67:146d14ab15e7
Debug output: off by default, on with VAMPY_VERBOSE environment variable
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 10:03:44 +0000 |
parents | 5664fe298af2 |
children |
comparison
equal
deleted
inserted
replaced
66:5664fe298af2 | 67:146d14ab15e7 |
---|---|
14 #include "PyRealTime.h" | 14 #include "PyRealTime.h" |
15 #include "PyFeature.h" | 15 #include "PyFeature.h" |
16 #include "PyFeatureSet.h" | 16 #include "PyFeatureSet.h" |
17 #include "PyParameterDescriptor.h" | 17 #include "PyParameterDescriptor.h" |
18 #include "PyOutputDescriptor.h" | 18 #include "PyOutputDescriptor.h" |
19 #include "Debug.h" | |
19 #include "vamp/vamp.h" | 20 #include "vamp/vamp.h" |
20 #include "vamp-sdk/Plugin.h" | 21 #include "vamp-sdk/Plugin.h" |
21 | 22 |
22 using namespace std; | 23 using namespace std; |
23 using namespace Vamp; | 24 using namespace Vamp; |
248 if (PyModule_AddObject(module,"OutputDescriptor",(PyObject*)&OutputDescriptor_Type) !=0) goto failure; | 249 if (PyModule_AddObject(module,"OutputDescriptor",(PyObject*)&OutputDescriptor_Type) !=0) goto failure; |
249 | 250 |
250 Py_INCREF((PyObject*)&ParameterDescriptor_Type); | 251 Py_INCREF((PyObject*)&ParameterDescriptor_Type); |
251 if (PyModule_AddObject(module,"ParameterDescriptor",(PyObject*)&ParameterDescriptor_Type) !=0) goto failure; | 252 if (PyModule_AddObject(module,"ParameterDescriptor",(PyObject*)&ParameterDescriptor_Type) !=0) goto failure; |
252 | 253 |
253 #ifdef _DEBUG | 254 DSTREAM << "Vampy: extension module initialised." << endl; |
254 cerr << "Vampy: extension module initialised." << endl; | |
255 #endif | |
256 | 255 |
257 return; | 256 return; |
258 | 257 |
259 failure : | 258 failure : |
260 if (PyErr_Occurred()) {PyErr_Print(); PyErr_Clear();} | 259 if (PyErr_Occurred()) {PyErr_Print(); PyErr_Clear();} |