Ignore:
Timestamp:
May 12, 2016, 8:05:34 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
163d159
Parents:
1670f39
Message:

tests/src/temporal: avoid crash, clarify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/temporal/test-c_weighting.c

    r1670f39 rb2de03f  
    2020  // samplerate unknown
    2121  f = new_aubio_filter_c_weighting (4200);
    22   del_aubio_filter (f);
     22  if (!f) {
     23    //PRINT_WRN ("failed creating C-weighting filter with samplerate=4200Hz");
     24  }
    2325
    2426  // order to small
    2527  f = new_aubio_filter (2);
    26   aubio_filter_set_c_weighting (f, samplerate);
     28  if (aubio_filter_set_c_weighting (f, samplerate) != 0) {
     29    //PRINT_WRN ("failed setting filter to C-weighting");
     30  }
    2731  del_aubio_filter (f);
    2832
    2933  // order to big
    3034  f = new_aubio_filter (12);
    31   aubio_filter_set_c_weighting (f, samplerate);
     35  if (aubio_filter_set_c_weighting (f, samplerate) != 0) {
     36    //PRINT_WRN ("failed setting filter to C-weighting");
     37  }
    3238  del_aubio_filter (f);
    3339
Note: See TracChangeset for help on using the changeset viewer.