Changeset f9204ac


Ignore:
Timestamp:
Nov 29, 2018, 6:39:02 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/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
2cf905f
Parents:
242e923
Message:

[tests] fix argument parsing in source

File:
1 edited

Legend:

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

    r242e923 rf9204ac  
    2323  uint_t hop_size = 256;
    2424  uint_t n_frames = 0, read = 0;
    25   if ( argc == 3 ) samplerate = atoi(argv[2]);
    26   if ( argc == 4 ) hop_size = atoi(argv[3]);
     25  if ( argc >= 3 ) samplerate = atoi(argv[2]);
     26  if ( argc >= 4 ) hop_size = atoi(argv[3]);
    2727
    2828  char_t *source_path = argv[1];
Note: See TracChangeset for help on using the changeset viewer.