Changeset 1ddb9d1 for src


Ignore:
Timestamp:
Dec 20, 2018, 7:17:58 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:
4edba9d
Parents:
6f22ed5
Message:

[io] source_pad_do_output to pad extra channels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/ioutils.c

    r6f22ed5 r1ddb9d1  
    112112    }
    113113  }
     114
     115  // destination matrix has more channels than the file
     116  // copy channels from the source to extra output channels
     117  if (read_data->height > source_channels) {
     118    for (i = source_channels; i < read_data->height; i++) {
     119      AUBIO_MEMCPY(read_data->data[i], read_data->data[i % source_channels],
     120          sizeof(smpl_t) * read_data->length);
     121    }
     122  }
    114123}
    115124
Note: See TracChangeset for help on using the changeset viewer.