shithub: aubio

Download patch

ref: 3e882a8e7e4ee36e05aafe96090a5599658ec19a
parent: 91ce8d52b1703a9a8af75dc101fa9b71360a410e
author: Paul Brossier <piem@piem.org>
date: Thu Dec 24 23:56:24 EST 2009

py-filterbank.c: switch to proxy functions

--- a/interfaces/python/py-filterbank.c
+++ b/interfaces/python/py-filterbank.c
@@ -53,7 +53,7 @@
 Py_filterbank_do(Py_filterbank * self, PyObject * args)
 {
   PyObject *input;
-  Py_cvec *vec;
+  cvec_t *vec;
   fvec_t *out;
 
   if (!PyArg_ParseTuple (args, "O", &input)) {
@@ -60,7 +60,7 @@
     return NULL;
   }
 
-  vec = PyAubio_ArrayToCvec (input);
+  vec = PyAubio_ArrayToCCvec (input);
 
   if (vec == NULL) {
     return NULL;
@@ -69,7 +69,7 @@
   out = new_fvec (self->n_filters);
 
   // compute the function
-  aubio_filterbank_do (self->o, vec->o, out);
+  aubio_filterbank_do (self->o, vec, out);
   return (PyObject *)PyAubio_CFvecToArray(out);
 }