Ignore:
Timestamp:
Dec 17, 2018, 3:14:39 PM (5 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/timestretch, fix/ffmpeg5, master
Children:
12e5d89, d81e16d
Parents:
0512fca
Message:

[tests] improve test-sink

File:
1 edited

Legend:

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

    r0512fca r05774ba3  
    113113  if (aubio_sink_preset_samplerate(s, samplerate)) return 1;
    114114
     115  if (aubio_sink_get_samplerate(s) != samplerate) return 1;
     116  if (aubio_sink_get_channels(s) != channels) return 1;
     117
    115118  mat = new_fmat(channels, hop_size);
    116119  // check writing a vector with valid length
    117120  aubio_sink_do_multi(s, mat, hop_size);
     121  // check writing 0 frames
     122  aubio_sink_do_multi(s, mat, 0);
    118123  // check writing more than in the input
    119124  aubio_sink_do_multi(s, mat, hop_size+1);
Note: See TracChangeset for help on using the changeset viewer.