Mercurial > hg > vampy-host
changeset 32:d5aba4c3c229
Minor tidy
author | Chris Cannam |
---|---|
date | Wed, 26 Nov 2014 11:50:15 +0000 |
parents | f565f4b5cbaa |
children | ef0cf1ba78a9 |
files | PyPluginObject.cpp |
diffstat | 1 files changed, 2 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/PyPluginObject.cpp Wed Nov 26 11:12:00 2014 +0000 +++ b/PyPluginObject.cpp Wed Nov 26 11:50:15 2014 +0000 @@ -233,8 +233,6 @@ VectorConversion typeConv; - cerr << "here!" << endl; - vector<vector<float> > data; for (int c = 0; c < channels; ++c) { PyObject *cbuf = PyList_GET_ITEM(pyBuffer, c); @@ -250,18 +248,12 @@ inbuf[c] = &data[c][0]; } - cerr << "no, here!" << endl; - RealTime timeStamp = *PyRealTime_AsRealTime(pyRealTime); - cerr << "no no, here!" << endl; - Plugin::FeatureSet fs = pd->plugin->process(inbuf, timeStamp); delete[] inbuf; - cerr << "no no no, here!" << endl; - VectorConversion conv; PyObject *pyFs = PyDict_New(); @@ -305,8 +297,6 @@ PyDict_SetItem(pyFs, pyN, pyFl); } } - - cerr << "no you fool, here!" << endl; return pyFs; } @@ -320,8 +310,8 @@ if (!pd) return 0; delete pd->plugin; - pd->plugin = 0; // This is checked by getPluginObject, so we - // attempt to avoid repeated calls from blowing up + pd->plugin = 0; // This is checked by getPluginObject, so we avoid + // blowing up if called repeatedly return Py_True; }