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/aubiopitch.c

    r82ae9d7 r61a1e5d  
    5353
    5454int main(int argc, char **argv) {
     55  int ret = 0;
    5556
    5657  buffer_size = 2048;
     
    6667
    6768  o = new_aubio_pitch (pitch_method, buffer_size, hop_size, samplerate);
     69  if (o == NULL) { ret = 1; goto beach; }
    6870  if (pitch_tolerance != 0.)
    6971    aubio_pitch_set_tolerance (o, pitch_tolerance);
     
    8486  del_fvec (pitch);
    8587
     88beach:
    8689  examples_common_del();
    87   return 0;
     90  return ret;
    8891}
    89 
Note: See TracChangeset for help on using the changeset viewer.