Changes in / [c059581:c19f9e5]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_apple_audio.c
rc059581 rc19f9e5 205 205 } 206 206 } 207 // if read_data has more channels than the file208 if (read_to->height > s->channels) {209 // copy last channel to all additional channels210 for (v = 0; v < loadedPackets; v++) {211 for (c = s->channels; c < read_to->height; c++) {212 buf[c][v] = SHORT_TO_FLOAT(data[ v * s->channels + (s->channels - 1)]);213 }214 }215 }216 207 // short read, fill with zeros 217 208 if (loadedPackets < s->block_size) { 218 209 for (v = loadedPackets; v < s->block_size; v++) { 219 for (c = 0; c < read_to->height; c++) {210 for (c = 0; c < s->channels; c++) { 220 211 buf[c][v] = 0.; 221 212 } -
tests/src/synth/test-sampler.c
rc059581 rc19f9e5 14 14 15 15 uint_t samplerate = 0; // default is the samplerate of input_path 16 uint_t hop_size = 256;16 uint_t hop_size = 512; 17 17 uint_t n_frames = 0, read = 0; 18 18 … … 36 36 aubio_sampler_play ( sampler ); 37 37 } 38 if (n_frames / hop_size == 40) { 39 aubio_sampler_play ( sampler ); 40 } 41 if (n_frames / hop_size == 70) { 38 if (n_frames / hop_size == 20) { 42 39 aubio_sampler_play ( sampler ); 43 40 }
Note: See TracChangeset
for help on using the changeset viewer.