Changeset 687835d


Ignore:
Timestamp:
Dec 6, 2018, 3:32:12 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
Children:
1a3d3b7
Parents:
78a564b
Message:

[tests] pitchshift tests to pass without rubberband

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/effects/test-pitchshift.c

    r78a564b r687835d  
    2020  }
    2121
     22#ifdef HAVE_RUBBERBAND
    2223  uint_t samplerate = 0;
    2324  uint_t hop_size = 64;
     
    7576  del_fvec(out);
    7677beach_fvec:
     78#else
     79  err = 0;
     80  PRINT_ERR("aubio was not compiled with rubberband\n");
     81#endif
    7782  return err;
    7883}
     
    9297  aubio_pitchshift_t *p = new_aubio_pitchshift(mode, transpose,
    9398      hop_size, samplerate);
     99#ifdef HAVE_RUBBERBAND
    94100  if (!p) return 1;
    95101  if (!aubio_pitchshift_set_pitchscale(p, 0.1)) return 1;
    96102  if (!aubio_pitchshift_set_transpose(p, -30)) return 1;
    97103  del_aubio_pitchshift(p);
     104#else
     105  if (p) return 1;
     106#endif
    98107
    99108  return run_on_default_source_and_sink(main);
Note: See TracChangeset for help on using the changeset viewer.