Ignore:
Timestamp:
May 2, 2016, 12:52:56 PM (9 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:
2a14820
Parents:
9f8cd9f
Message:

tests/src/io/test-source.c: add _get_duration

File:
1 edited

Legend:

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

    r9f8cd9f r37ca459  
    3434  fvec_t *vec = new_fvec(hop_size);
    3535
     36  uint_t n_frames_expected = aubio_source_get_duration(s);
     37
    3638  samplerate = aubio_source_get_samplerate(s);
    3739
     
    4244  } while ( read == hop_size );
    4345
    44   PRINT_MSG("read %d frames at %dHz (%d blocks) from %s\n", n_frames, samplerate,
    45     n_frames / hop_size, source_path);
     46  PRINT_MSG("read %d frames (expected %d) at %dHz (%d blocks) from %s\n",
     47            n_frames, n_frames_expected, samplerate, n_frames / hop_size,
     48            source_path);
    4649
    4750  // close the file (optional)
Note: See TracChangeset for help on using the changeset viewer.