Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -268,9 +268,9 @@ Py_filterbank_get_coeffs (Py_filterbank * self, PyObject *unused) · 267 unmodified lines | |||
| 268 | static PyObject * | 268 | static PyObject * |
| 269 | Py_filterbank_set_power(Py_filterbank *self, PyObject *args) | 269 | Py_filterbank_set_power(Py_filterbank *self, PyObject *args) |
| 270 | { | 270 | { |
| 271 | uint_t power; | 271 | smpl_t power; |
| 272 | 272 | ||
| 273 | if (!PyArg_ParseTuple (args, "I", &power)) { | 273 | if (!PyArg_ParseTuple (args, "f", &power)) { |
| 274 | return NULL; | 274 | return NULL; |
| 275 | } | 275 | } |
| 276 | if(aubio_filterbank_set_power (self->o, power)) { | 276 | if(aubio_filterbank_set_power (self->o, power)) { |
| @@ -291,12 +291,12 @@ Py_filterbank_set_power(Py_filterbank *self, PyObject *args) · 14 unmodified lines | |||
| 291 | static PyObject * | 291 | static PyObject * |
| 292 | Py_filterbank_set_norm(Py_filterbank *self, PyObject *args) | 292 | Py_filterbank_set_norm(Py_filterbank *self, PyObject *args) |
| 293 | { | 293 | { |
| 294 | uint_t playing; | 294 | smpl_t norm; |
| 295 | 295 | ||
| 296 | if (!PyArg_ParseTuple (args, "I", &playing)) { | 296 | if (!PyArg_ParseTuple (args, "f", &norm)) { |
| 297 | return NULL; | 297 | return NULL; |
| 298 | } | 298 | } |
| 299 | if(aubio_filterbank_set_norm (self->o, playing)) { | 299 | if(aubio_filterbank_set_norm (self->o, norm)) { |
| 300 | if (PyErr_Occurred() == NULL) { | 300 | if (PyErr_Occurred() == NULL) { |
| 301 | PyErr_SetString (PyExc_ValueError, | 301 | PyErr_SetString (PyExc_ValueError, |
| 302 | "error running filterbank.set_power"); | 302 | "error running filterbank.set_power"); |