Changeset 6a253e8 for src


Ignore:
Timestamp:
Dec 20, 2018, 7:05:41 PM (7 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, master
Children:
2510248
Parents:
7dea72f
Message:

[source_wavread] use padding helpers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_wavread.c

    r7dea72f r6a253e8  
    378378    }
    379379  }
    380   if (total_wrote < length) {
    381     for (i = end; i < length; i++) {
    382       read_data->data[i] = 0.;
    383     }
    384   }
     380
     381  aubio_source_pad_output (read_data, total_wrote);
     382
    385383  *read = total_wrote;
    386384}
     
    419417    }
    420418  }
    421   if (total_wrote < length) {
    422     for (j = 0; j < read_data->height; j++) {
    423       for (i = end; i < length; i++) {
    424         read_data->data[j][i] = 0.;
    425       }
    426     }
    427   }
     419
     420  aubio_source_pad_multi_output(read_data, s->input_channels, total_wrote);
     421
    428422  *read = total_wrote;
    429423}
Note: See TracChangeset for help on using the changeset viewer.