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

    r82ae9d7 r61a1e5d  
    5151
    5252int main(int argc, char **argv) {
     53  int ret = 0;
     54
    5355  examples_common_init(argc,argv);
    5456
     
    6668
    6769  notes = new_aubio_notes ("default", buffer_size, hop_size, samplerate);
     70  if (notes == NULL) { ret = 1; goto beach; }
    6871
    6972  examples_common_process((aubio_process_func_t)process_block, process_print);
     
    7477  del_aubio_notes (notes);
    7578
     79beach:
    7680  examples_common_del();
    77   return 0;
     81  return ret;
    7882}
    79 
Note: See TracChangeset for help on using the changeset viewer.