Changeset 3c6f584 for src/spectral/fft.c


Ignore:
Timestamp:
Aug 20, 2015, 1:15:54 PM (9 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:
0309a22
Parents:
e3e8e9d
Message:

src/spectral/fft.c: if Ooura is used, make sure the fft size is a power of two

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/fft.c

    re3e8e9d r3c6f584  
    168168#endif
    169169#else                         // using OOURA
     170  if (aubio_is_power_of_two(winsize) != 1) {
     171    AUBIO_ERR("fft: can only create with sizes power of two,"
     172              " requested %d\n", winsize);
     173    return NULL;
     174  }
    170175  s->winsize = winsize;
    171176  s->fft_size = winsize / 2 + 1;
Note: See TracChangeset for help on using the changeset viewer.