Changeset dab4a4c


Ignore:
Timestamp:
Sep 23, 2016, 3:22:51 AM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
3528079
Parents:
1d01e515
Message:

python/ext/py-fft.c: use error string set in src/spectral/fft.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-fft.c

    r1d01e515 rdab4a4c  
    5252  self->o = new_aubio_fft (self->win_s);
    5353  if (self->o == NULL) {
    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);
     54    // PyErr_Format(PyExc_RuntimeError, ...) was set above by new_ which called
     55    // AUBIO_ERR when failing
    5956    return -1;
    6057  }
Note: See TracChangeset for help on using the changeset viewer.