- Timestamp:
- Dec 20, 2018, 8:30:50 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- f56f795
- Parents:
- 9630fa8 (diff), a2019c4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- tests/src/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/io/base-source_custom.h
r9630fa8 re2f1e6d 94 94 if (read != hop_size) return 1; 95 95 96 // read again in undersized vector 97 del_fvec(vec); 98 vec = new_fvec(hop_size - 1); 99 aubio_source_custom_do(s, vec, &read); 100 if (read != hop_size - 1) return 1; 101 102 // read again in oversized vector 103 del_fvec(vec); 104 vec = new_fvec(hop_size + 1); 105 aubio_source_custom_do(s, vec, &read); 106 if (read != hop_size) return 1; 107 96 108 // seek to 0 97 109 if(aubio_source_custom_seek(s, 0)) return 1; 98 110 99 111 // read again as multiple channels 112 aubio_source_custom_do_multi(s, mat, &read); 113 if (read != hop_size) return 1; 114 115 // read again as multiple channels in an undersized matrix 116 del_fmat(mat); 117 mat = new_fmat(channels - 1, hop_size); 118 aubio_source_custom_do_multi(s, mat, &read); 119 if (read != hop_size) return 1; 120 121 // read again as multiple channels in an undersized matrix 122 del_fmat(mat); 123 mat = new_fmat(channels, hop_size - 1); 124 aubio_source_custom_do_multi(s, mat, &read); 125 if (read != hop_size - 1) return 1; 126 127 // read again as multiple channels in an oversized matrix 128 del_fmat(mat); 129 mat = new_fmat(channels + 1, hop_size); 130 aubio_source_custom_do_multi(s, mat, &read); 131 if (read != hop_size) return 1; 132 133 // read again as multiple channels in an oversized matrix 134 del_fmat(mat); 135 mat = new_fmat(channels, hop_size + 1); 100 136 aubio_source_custom_do_multi(s, mat, &read); 101 137 if (read != hop_size) return 1; -
tests/src/io/test-source.c
r9630fa8 re2f1e6d 90 90 if (read != hop_size) return 1; 91 91 92 // read again in undersized vector 93 del_fvec(vec); 94 vec = new_fvec(hop_size - 1); 95 aubio_source_do(s, vec, &read); 96 if (read != hop_size - 1) return 1; 97 98 // read again in oversized vector 99 del_fvec(vec); 100 vec = new_fvec(hop_size + 1); 101 aubio_source_do(s, vec, &read); 102 if (read != hop_size) return 1; 103 92 104 // seek to 0 93 105 if(aubio_source_seek(s, 0)) return 1; 94 106 95 107 // read again as multiple channels 108 aubio_source_do_multi(s, mat, &read); 109 if (read != hop_size) return 1; 110 111 // read again as multiple channels in an undersized matrix 112 del_fmat(mat); 113 mat = new_fmat(channels - 1, hop_size); 114 aubio_source_do_multi(s, mat, &read); 115 if (read != hop_size) return 1; 116 117 // read again as multiple channels in an undersized matrix 118 del_fmat(mat); 119 mat = new_fmat(channels, hop_size - 1); 120 aubio_source_do_multi(s, mat, &read); 121 if (read != hop_size - 1) return 1; 122 123 // read again as multiple channels in an oversized matrix 124 del_fmat(mat); 125 mat = new_fmat(channels + 1, hop_size); 126 aubio_source_do_multi(s, mat, &read); 127 if (read != hop_size) return 1; 128 129 // read again as multiple channels in an oversized matrix 130 del_fmat(mat); 131 mat = new_fmat(channels, hop_size + 1); 96 132 aubio_source_do_multi(s, mat, &read); 97 133 if (read != hop_size) return 1;
Note: See TracChangeset
for help on using the changeset viewer.