Changeset 8b210a9 for src


Ignore:
Timestamp:
Nov 30, 2016, 5:16:18 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, sampler, yinfft+
Children:
41ebc91
Parents:
e0ad269
Message:

src/io/source_avcodec.c: avoid function calls before declarations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    re0ad269 r8b210a9  
    388388
    389389void 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);
    391390  uint_t i;
    392391  uint_t end = 0;
    393392  uint_t total_wrote = 0;
     393  // switch from multi
     394  if (s->multi == 1) aubio_source_avcodec_reset_resampler(s, 0);
    394395  while (total_wrote < s->hop_size) {
    395396    end = MIN(s->read_samples - s->read_index, s->hop_size - total_wrote);
     
    419420
    420421void 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);
    422422  uint_t i,j;
    423423  uint_t end = 0;
    424424  uint_t total_wrote = 0;
     425  // switch from mono
     426  if (s->multi == 0) aubio_source_avcodec_reset_resampler(s, 1);
    425427  while (total_wrote < s->hop_size) {
    426428    end = MIN(s->read_samples - s->read_index, s->hop_size - total_wrote);
Note: See TracChangeset for help on using the changeset viewer.