[py] filterbank.set_triangle_bands can accept a float samplerate
authorPaul Brossier <piem@piem.org>
Tue, 20 Nov 2018 21:33:58 +0000 (22:33 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 20 Nov 2018 21:33:58 +0000 (22:33 +0100)
python/ext/py-filterbank.c

index 24f9f71..01d4d3f 100644 (file)
@@ -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;
   }