Mercurial > hg > vampy-host
comparison PyPluginObject.cpp @ 46:f12b59c022a5
Minor tidy
author | Chris Cannam |
---|---|
date | Wed, 03 Dec 2014 18:22:28 +0000 |
parents | 36cc53aad853 |
children | 1cb0ed230b71 |
comparison
equal
deleted
inserted
replaced
45:22f64060ffb4 | 46:f12b59c022a5 |
---|---|
52 #include <vector> | 52 #include <vector> |
53 #include <cstddef> | 53 #include <cstddef> |
54 | 54 |
55 using namespace std; | 55 using namespace std; |
56 using namespace Vamp; | 56 using namespace Vamp; |
57 | |
58 //!!! todo: conv errors | |
59 | 57 |
60 static | 58 static |
61 PyPluginObject * | 59 PyPluginObject * |
62 getPluginObject(PyObject *pyPluginHandle) | 60 getPluginObject(PyObject *pyPluginHandle) |
63 { | 61 { |
422 } | 420 } |
423 | 421 |
424 for (int c = 0; c < channels; ++c) { | 422 for (int c = 0; c < channels; ++c) { |
425 if ((int)data[c].size() != blockSize) { | 423 if ((int)data[c].size() != blockSize) { |
426 // cerr << "Wrong number of samples on channel " << c << ": expected " << blockSize << " (plugin's block size), got " << data[c].size() << endl; | 424 // cerr << "Wrong number of samples on channel " << c << ": expected " << blockSize << " (plugin's block size), got " << data[c].size() << endl; |
427 PyErr_SetString(PyExc_TypeError, "Wrong number of samples"); | 425 PyErr_SetString(PyExc_TypeError, "Wrong number of samples for process block"); |
428 return vector<vector<float> >(); | 426 return vector<vector<float> >(); |
429 } | 427 } |
430 } | 428 } |
431 | 429 |
432 return data; | 430 return data; |