- Timestamp:
- Aug 20, 2015, 8:26:59 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:
- eb68991
- Parents:
- abffec0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/fft.c
rabffec0 ra984461 120 120 aubio_fft_t * new_aubio_fft (uint_t winsize) { 121 121 aubio_fft_t * s = AUBIO_NEW(aubio_fft_t); 122 if ((sint_t)winsize < 1) { 123 AUBIO_ERR("fft: got winsize %d, but can not be < 1\n", winsize); 124 goto beach; 125 } 122 126 #ifdef HAVE_FFTW3 123 127 uint_t i; … … 171 175 AUBIO_ERR("fft: can only create with sizes power of two," 172 176 " requested %d\n", winsize); 173 return NULL;177 goto beach; 174 178 } 175 179 s->winsize = winsize; … … 184 188 #endif /* HAVE_FFTW3 */ 185 189 return s; 190 beach: 191 AUBIO_FREE(s); 192 return NULL; 186 193 } 187 194
Note: See TracChangeset
for help on using the changeset viewer.