Changeset 23982aa for python/ext
- Timestamp:
- May 3, 2016, 5:40:36 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- a9c33a2
- Parents:
- fcef3fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-fft.c
rfcef3fd r23982aa 52 52 self->o = new_aubio_fft (self->win_s); 53 53 if (self->o == NULL) { 54 char_t errstr[30]; 55 sprintf(errstr, "error creating fft with win_s=%d", self->win_s); 56 PyErr_SetString (PyExc_Exception, errstr); 54 PyErr_Format(PyExc_RuntimeError, 55 "error creating fft with win_s=%d " 56 "(should be a power of 2 greater than 1; " 57 "try recompiling aubio with --enable-fftw3)", 58 self->win_s); 57 59 return -1; 58 60 } … … 69 71 Py_XDECREF(self->doout); 70 72 Py_XDECREF(self->rdoout); 71 del_aubio_fft(self->o); 73 if (self->o) { 74 del_aubio_fft(self->o); 75 } 72 76 Py_TYPE(self)->tp_free((PyObject *) self); 73 77 }
Note: See TracChangeset
for help on using the changeset viewer.