Changeset 8b210a9 for src/io/source_avcodec.c
- Timestamp:
- Nov 30, 2016, 5:16:18 PM (8 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, sampler, yinfft+
- Children:
- 41ebc91
- Parents:
- e0ad269
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
re0ad269 r8b210a9 388 388 389 389 void aubio_source_avcodec_do(aubio_source_avcodec_t * s, fvec_t * read_data, uint_t * read){ 390 if (s->multi == 1) aubio_source_avcodec_reset_resampler(s, 0);391 390 uint_t i; 392 391 uint_t end = 0; 393 392 uint_t total_wrote = 0; 393 // switch from multi 394 if (s->multi == 1) aubio_source_avcodec_reset_resampler(s, 0); 394 395 while (total_wrote < s->hop_size) { 395 396 end = MIN(s->read_samples - s->read_index, s->hop_size - total_wrote); … … 419 420 420 421 void aubio_source_avcodec_do_multi(aubio_source_avcodec_t * s, fmat_t * read_data, uint_t * read){ 421 if (s->multi == 0) aubio_source_avcodec_reset_resampler(s, 1);422 422 uint_t i,j; 423 423 uint_t end = 0; 424 424 uint_t total_wrote = 0; 425 // switch from mono 426 if (s->multi == 0) aubio_source_avcodec_reset_resampler(s, 1); 425 427 while (total_wrote < s->hop_size) { 426 428 end = MIN(s->read_samples - s->read_index, s->hop_size - total_wrote);
Note: See TracChangeset
for help on using the changeset viewer.