- Timestamp:
- Mar 22, 2013, 2:50:06 AM (12 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- 163c679, 5d16185, 6d44595
- Parents:
- 3d2fe26
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
r3d2fe26 r18a378e 172 172 173 173 *read = (int)FLOOR(s->ratio * read_samples / input_channels + .5); 174 175 if (*read < s->hop_size) { 176 for (j = *read; j < s->hop_size; j++) { 177 data[j] = 0; 178 } 179 } 180 174 181 } 175 182 … … 206 213 207 214 *read = (int)FLOOR(s->ratio * read_samples / input_channels + .5); 215 216 if (*read < s->hop_size) { 217 for (i = 0; i < input_channels; i++) { 218 for (j = *read; j < s->hop_size; j++) { 219 data[i][j] = 0.; 220 } 221 } 222 } 223 208 224 } 209 225
Note: See TracChangeset
for help on using the changeset viewer.