Changeset 9daf018


Ignore:
Timestamp:
Oct 8, 2009, 12:07:12 PM (15 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:
0af05d3
Parents:
06f2d78
Message:

tests/src/test-resample.c: run 10 times, update defines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/test-resample.c

    r06f2d78 r9daf018  
     1#include <stdio.h>
    12#include <aubio.h>
    23
    34int main(){
    4 #if HAVE_LIBSAMPLERATE
     5#if HAVE_SAMPLERATE
    56        /* allocate some memory */
    67        uint_t win_s      = 1024;                       /* window size */
     
    1213        uint_t i = 0;
    1314
    14         while (i < 100) {
    15           aubio_resampler_process(o,in,out);
     15        while (i < 10) {
     16          aubio_resampler_do(o,in,out);
    1617          i++;
    1718        };
     
    2122        del_fvec(out);
    2223
    23 #endif /* HAVE_LIBSAMPLERATE */
     24#else
     25        fprintf(stderr, "aubio_resampler_t not compiled in\n");
     26#endif /* HAVE_SAMPLERATE */
    2427        return 0;
    2528}
Note: See TracChangeset for help on using the changeset viewer.