Ignore:
Timestamp:
Nov 28, 2016, 4:16:26 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
d5745af
Parents:
1437b5c
git-author:
Paul Brossier <piem@piem.org> (10/03/16 18:59:12)
git-committer:
Paul Brossier <piem@piem.org> (11/28/16 16:16:26)
Message:

examples/: return 1 if object creation failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiotrack.c

    r1437b5c r7e8b276  
    6161
    6262int main(int argc, char **argv) {
     63  int ret = 0;
    6364  // override general settings from utils.c
    6465  buffer_size = 1024;
     
    7677  tempo_out = new_fvec(2);
    7778  tempo = new_aubio_tempo(tempo_method, buffer_size, hop_size, samplerate);
     79  if (tempo == NULL) { ret = 1; goto beach; }
    7880  // set silence threshold very low to output beats even during silence
    7981  // aubio_tempo_set_silence(tempo, -1000.);
     
    9395  del_fvec(tempo_out);
    9496
     97beach:
    9598  examples_common_del();
    96   return 0;
     99  return ret;
    97100}
    98 
Note: See TracChangeset for help on using the changeset viewer.