Changeset 7dea72f
- Timestamp:
- Dec 20, 2018, 7:05:29 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:
- 6a253e8
- Parents:
- 2a94eca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
r2a94eca r7dea72f 206 206 *read = (int)FLOOR(s->ratio * length + .5); 207 207 208 if (*read < read_data->length) { 209 for (j = *read; j < read_data->length; j++) { 210 read_data->data[j] = 0; 211 } 212 } 208 aubio_source_pad_output (read_data, *read); 213 209 214 210 } … … 258 254 *read = (int)FLOOR(s->ratio * length + .5); 259 255 260 if (*read < read_data->length) { 261 for (i = 0; i < read_data->height; i++) { 262 for (j = *read; j < read_data->length; j++) { 263 read_data->data[i][j] = 0.; 264 } 265 } 266 } 267 256 aubio_source_pad_multi_output(read_data, input_channels, *read); 268 257 } 269 258
Note: See TracChangeset
for help on using the changeset viewer.