From 35ce4ab5969423fef884b78be6efe12fd92d4a8a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 20 Nov 2018 22:33:58 +0100 Subject: [PATCH] [py] filterbank.set_triangle_bands can accept a float samplerate --- python/ext/py-filterbank.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ext/py-filterbank.c b/python/ext/py-filterbank.c index 24f9f714..01d4d3f1 100644 --- a/python/ext/py-filterbank.c +++ b/python/ext/py-filterbank.c @@ -122,8 +122,8 @@ Py_filterbank_set_triangle_bands (Py_filterbank * self, PyObject *args) uint_t err = 0; PyObject *input; - uint_t samplerate; - if (!PyArg_ParseTuple (args, "OI", &input, &samplerate)) { + smpl_t samplerate; + if (!PyArg_ParseTuple (args, "Of", &input, &samplerate)) { return NULL; } -- 2.11.0