Ignore:
Timestamp:
Oct 3, 2016, 6:59:12 PM (8 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, sampler, yinfft+
Children:
ffd10fb
Parents:
82ae9d7
Message:

examples/: return 1 if object creation failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    r82ae9d7 r61a1e5d  
    5959
    6060int main(int argc, char **argv) {
     61  int ret = 0;
    6162  examples_common_init(argc,argv);
    6263
     
    6970
    7071  o = new_aubio_onset (onset_method, buffer_size, hop_size, samplerate);
     72  if (o == NULL) { ret = 1; goto beach; }
    7173  if (onset_threshold != 0.)
    7274    aubio_onset_set_threshold (o, onset_threshold);
     
    8991  del_fvec (onset);
    9092
     93beach:
    9194  examples_common_del();
    92   return 0;
     95  return ret;
    9396}
Note: See TracChangeset for help on using the changeset viewer.