From 51284ab5672c06c6854121b31280ac08920c7572 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 21 Nov 2018 00:22:39 +0100 Subject: [PATCH] [py] fix filterbank in double-precision mode --- python/ext/py-filterbank.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) { -- 2.11.0