Changeset 2a94eca for src/io/ioutils.c
- Timestamp:
- Dec 20, 2018, 7:03:45 PM (5 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:
- 7dea72f
- Parents:
- 2589ea9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/ioutils.c
r2589ea9 r2a94eca 20 20 21 21 #include "aubio_priv.h" 22 #include "fmat.h" 22 23 23 24 uint_t … … 92 93 } 93 94 95 void 96 aubio_source_pad_output (fvec_t *read_data, uint_t source_read) 97 { 98 uint_t i = 0; 99 if (source_read < read_data->length) { 100 for (i = source_read; i < read_data->length; i++) { 101 read_data->data[i] = 0.; 102 } 103 } 104 } 105 106 void 107 aubio_source_pad_multi_output (fmat_t *read_data, 108 uint_t source_channels, uint_t source_read) { 109 uint_t i, j; 110 if (source_read < read_data->length) { 111 for (i = 0; i < read_data->height; i++) { 112 for (j = source_read; j < read_data->length; j++) { 113 read_data->data[i][j] = 0.; 114 } 115 } 116 } 117 } 118 94 119 uint_t 95 120 aubio_sink_validate_input_length(const char_t *kind, const char_t *path,
Note: See TracChangeset
for help on using the changeset viewer.