[py] filterbank.set_mel_coeffs_slaney accepts float
authorPaul Brossier <piem@piem.org>
Sat, 17 Nov 2018 13:17:02 +0000 (14:17 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 17 Nov 2018 13:17:02 +0000 (14:17 +0100)
python/ext/py-filterbank.c

index 99d81d9..24f9f71 100644 (file)
@@ -156,8 +156,8 @@ Py_filterbank_set_mel_coeffs_slaney (Py_filterbank * self, PyObject *args)
 {
   uint_t err = 0;
 
-  uint_t samplerate;
-  if (!PyArg_ParseTuple (args, "I", &samplerate)) {
+  smpl_t samplerate;
+  if (!PyArg_ParseTuple (args, AUBIO_NPY_SMPL_CHR, &samplerate)) {
     return NULL;
   }