shithub: aubio

Download patch

ref: a380b7330ac79e1ce595c0fb4bb8fc515f2b03bb
parent: 69dbe0a2be9a1781575de5413755e86a0619ff0b
author: Paul Brossier <piem@piem.org>
date: Sat Nov 17 09:17:02 EST 2018

[py] filterbank.set_mel_coeffs_slaney accepts float

--- a/python/ext/py-filterbank.c
+++ b/python/ext/py-filterbank.c
@@ -156,8 +156,8 @@
 {
   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;
   }