Changeset 7606d23 for tests


Ignore:
Timestamp:
Mar 6, 2013, 4:07:00 PM (12 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, pitchshift, sampler, timestretch, yinfft+
Children:
4a67c12
Parents:
e76eaf1
Message:

tests/src/io/test-source.c: abort if new_aubio_source failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/io/test-source.c

    re76eaf1 r7606d23  
    2929
    3030  fvec_t *vec = new_fvec(hop_size);
     31
    3132  aubio_source_t* s = new_aubio_source(source_path, samplerate, hop_size);
     33  if (!s) { err = 1; goto beach; }
     34
    3235  if (samplerate == 0 ) samplerate = aubio_source_get_samplerate(s);
    33 
    34   if (!s) { err = 1; goto beach; }
    3536
    3637  do {
     
    4344    n_frames / hop_size, source_path);
    4445
     46  del_aubio_source (s);
    4547beach:
    46   del_aubio_source (s);
    4748  del_fvec (vec);
    4849
Note: See TracChangeset for help on using the changeset viewer.