Changeset 387b605 for tests/src/io
- Timestamp:
- Dec 19, 2018, 2:49:22 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
- Children:
- 43ea60d
- Parents:
- 7b5e1a5
- Location:
- tests/src/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/io/base-sink_custom.h
r7b5e1a5 r387b605 26 26 char_t *sink_path = argv[2]; 27 27 28 aubio_source_t *i = NULL; 29 aubio_sink_custom_t *o = NULL; 30 28 31 if ( argc >= 4 ) samplerate = atoi(argv[3]); 29 32 if ( argc >= 5 ) hop_size = atoi(argv[4]); 30 33 31 34 fvec_t *vec = new_fvec(hop_size); 35 if (!vec) { err = 1; goto failure; } 32 36 33 aubio_source_t *i = new_aubio_source(source_path, samplerate, hop_size); 37 i = new_aubio_source(source_path, samplerate, hop_size); 38 if (!i) { err = 1; goto failure; } 34 39 if (samplerate == 0 ) samplerate = aubio_source_get_samplerate(i); 35 40 36 aubio_sink_custom_t *o = new_aubio_sink_custom(sink_path, samplerate); 37 38 if (!vec || !i || !o) { err = 1; goto failure; } 41 o = new_aubio_sink_custom(sink_path, samplerate); 42 if (!o) { err = 1; goto failure; } 39 43 40 44 do { -
tests/src/io/test-sink.c
r7b5e1a5 r387b605 22 22 char_t *sink_path = argv[2]; 23 23 24 aubio_source_t *i = NULL; 25 aubio_sink_t *o = NULL; 26 24 27 if ( argc >= 4 ) samplerate = atoi(argv[3]); 25 28 if ( argc >= 5 ) hop_size = atoi(argv[4]); 26 29 27 30 fvec_t *vec = new_fvec(hop_size); 31 if (!vec) { err = 1; goto failure; } 28 32 29 aubio_source_t *i = new_aubio_source(source_path, samplerate, hop_size); 33 i = new_aubio_source(source_path, samplerate, hop_size); 34 if (!i) { err = 1; goto failure; } 30 35 if (samplerate == 0 ) samplerate = aubio_source_get_samplerate(i); 31 36 32 aubio_sink_t *o = new_aubio_sink(sink_path, samplerate); 33 34 if (!vec || !i || !o) { err = 1; goto failure; } 37 o = new_aubio_sink(sink_path, samplerate); 38 if (!o) { err = 1; goto failure; } 35 39 36 40 do {
Note: See TracChangeset
for help on using the changeset viewer.