Changeset 3286230


Ignore:
Timestamp:
Mar 23, 2013, 1:07:51 AM (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:
19f222d
Parents:
987fb86
Message:

tests/src/io/test-source_seek.c: add simple test, read() / seek(0) / read()

File:
1 edited

Legend:

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

    r987fb86 r3286230  
    2323  uint_t hop_size = 256;
    2424  uint_t n_frames = 0, read = 0;
     25  uint_t old_n_frames;
    2526  if ( argc == 3 ) samplerate = atoi(argv[2]);
    2627  if ( argc == 4 ) hop_size = atoi(argv[3]);
     
    4647  aubio_source_seek (s, 0);
    4748
     49  old_n_frames = n_frames;
     50
    4851  n_frames = 0;
    4952  do {
     
    6063  del_fvec (vec);
    6164
     65  assert ( n_frames == old_n_frames );
    6266  return err;
    6367}
Note: See TracChangeset for help on using the changeset viewer.