shithub: aubio

Download patch

ref: 51284ab5672c06c6854121b31280ac08920c7572
parent: 15c3466808374dd402d6cc179350742cdac37ce9
author: Paul Brossier <piem@piem.org>
date: Tue Nov 20 19:22:39 EST 2018

[py] fix filterbank in double-precision mode

--- a/python/ext/py-filterbank.c
+++ b/python/ext/py-filterbank.c
@@ -123,7 +123,7 @@
 
   PyObject *input;
   smpl_t samplerate;
-  if (!PyArg_ParseTuple (args, "Of", &input, &samplerate)) {
+  if (!PyArg_ParseTuple (args, "O" AUBIO_NPY_SMPL_CHR, &input, &samplerate)) {
     return NULL;
   }
 
@@ -270,7 +270,7 @@
 {
   smpl_t power;
 
-  if (!PyArg_ParseTuple (args, "f", &power)) {
+  if (!PyArg_ParseTuple (args, AUBIO_NPY_SMPL_CHR, &power)) {
     return NULL;
   }
   if(aubio_filterbank_set_power (self->o, power)) {
@@ -293,7 +293,7 @@
 {
   smpl_t norm;
 
-  if (!PyArg_ParseTuple (args, "f", &norm)) {
+  if (!PyArg_ParseTuple (args, AUBIO_NPY_SMPL_CHR, &norm)) {
     return NULL;
   }
   if(aubio_filterbank_set_norm (self->o, norm)) {