Changeset eba0cc4 for tests/src/spectral/test-awhitening.c
- Timestamp:
- Nov 29, 2018, 4:15:21 PM (6 years ago)
- 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:
- 8386dbe
- Parents:
- 1b3edc6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/spectral/test-awhitening.c
r1b3edc6 reba0cc4 11 11 err = 2; 12 12 PRINT_WRN("no arguments, running tests\n"); 13 if (test_wrong_params() != 0) { 14 PRINT_ERR("tests failed!\n"); 15 err = 1; 16 } else { 17 err = 0; 18 } 13 err = test_wrong_params(); 19 14 PRINT_MSG("usage: %s <input_path> <output_path> [samplerate] [hop_size]\n", argv[0]); 20 15 return err; … … 31 26 if ( argc >= 4 ) samplerate = atoi(argv[3]); 32 27 if ( argc >= 5 ) hop_size = atoi(argv[4]); 33 if ( argc >= 6 ) {34 err = 2;35 PRINT_ERR("too many arguments\n");36 return err;37 }38 28 39 29 fvec_t *vec = new_fvec(hop_size);
Note: See TracChangeset
for help on using the changeset viewer.