From: Paul Brossier Date: Tue, 20 Nov 2018 23:22:39 +0000 (+0100) Subject: [py] fix filterbank in double-precision mode X-Git-Tag: 0.4.8~23^2 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=51284ab5672c06c6854121b31280ac08920c7572;p=aubio.git [py] fix filterbank in double-precision mode --- diff --git a/python/ext/py-filterbank.c b/python/ext/py-filterbank.c index 99cf4668..22f2a560 100644 --- a/python/ext/py-filterbank.c +++ b/python/ext/py-filterbank.c @@ -123,7 +123,7 @@ Py_filterbank_set_triangle_bands (Py_filterbank * self, PyObject *args) 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 @@ Py_filterbank_set_power(Py_filterbank *self, PyObject *args) { 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 @@ Py_filterbank_set_norm(Py_filterbank *self, PyObject *args) { 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)) {