Changeset 7dea72f for src


Ignore:
Timestamp:
Dec 20, 2018, 7:05:29 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

[source_sndfile] use padding helpers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    r2a94eca r7dea72f  
    206206  *read = (int)FLOOR(s->ratio * length + .5);
    207207
    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);
    213209
    214210}
     
    258254  *read = (int)FLOOR(s->ratio * length + .5);
    259255
    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);
    268257}
    269258
Note: See TracChangeset for help on using the changeset viewer.