Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/synth/test-wavetable.c

    r0de816c r9720945  
    77
    88  if (argc < 2) {
    9     PRINT_ERR("not enough arguments, running tests\n");
    10     err = run_on_default_sink(main);
     9    err = 2;
     10    PRINT_ERR("not enough arguments\n");
    1111    PRINT_MSG("usage: %s <output_path> [freq] [samplerate]\n", argv[0]);
    1212    return err;
     
    1818
    1919  char_t *sink_path = argv[1];
    20   if ( argc >= 4 ) samplerate = atoi(argv[3]);
    21   if ( argc >= 3 ) freq = atof(argv[2]);
     20  if ( argc == 4 ) samplerate = atoi(argv[3]);
     21  if ( argc == 3 ) freq = atof(argv[2]);
    2222
    2323  fvec_t *vec = new_fvec(hop_size);
Note: See TracChangeset for help on using the changeset viewer.