py-filterbank.c: switch to proxy functions
authorPaul Brossier <piem@piem.org>
Fri, 25 Dec 2009 03:56:24 +0000 (04:56 +0100)
committerPaul Brossier <piem@piem.org>
Fri, 25 Dec 2009 03:56:24 +0000 (04:56 +0100)
interfaces/python/py-filterbank.c

index a34e2f2ba5c9d9b1bfe04f1b71d65f8ecbd04993..dcb2d18a1e770f7920b8c53273cb744f70878779 100644 (file)
@@ -53,14 +53,14 @@ static PyObject *
 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)) {
     return NULL;
   }
 
-  vec = PyAubio_ArrayToCvec (input);
+  vec = PyAubio_ArrayToCCvec (input);
 
   if (vec == NULL) {
     return NULL;
@@ -69,7 +69,7 @@ Py_filterbank_do(Py_filterbank * self, PyObject * args)
   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);
 }