Changeset 2cf905f for tests/src/onset


Ignore:
Timestamp:
Nov 29, 2018, 6:49:32 PM (6 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
Children:
8968ea7
Parents:
f9204ac
Message:

[tests] onset creation may succeed with non-power of two sizes

File:
1 edited

Legend:

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

    rf9204ac r2cf905f  
    8585  if (new_aubio_onset("abcd", win_size, win_size/2, samplerate))
    8686    return 1;
    87   // pv creation failed
    88   if (new_aubio_onset("default", 5, 2, samplerate))
    89     return 1;
    9087
    9188  aubio_onset_t *o;
     89
     90  // pv creation might fail
     91  o = new_aubio_onset("default", 5, 2, samplerate);
     92  if (o) del_aubio_onset(o);
     93
    9294  o = new_aubio_onset("default", win_size, hop_size, samplerate);
    9395  if (!aubio_onset_set_default_parameters(o, "wrong_type"))
Note: See TracChangeset for help on using the changeset viewer.