Changeset e136c9f for src/io/source_sndfile.c
- Timestamp:
- Dec 23, 2018, 12:48:19 AM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
- Children:
- 8ad7d71
- Parents:
- b40c149
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
rb40c149 re136c9f 175 175 sf_count_t read_samples = aubio_sf_read_smpl (s->handle, s->scratch_data, 176 176 s->scratch_size); 177 uint_t read_length = read_samples / s->input_channels; 178 179 /* where to store de-interleaved data */ 180 smpl_t *ptr_data; 181 177 182 if (!s->handle) { 178 183 AUBIO_ERR("source_sndfile: could not read from %s (file was closed)\n", … … 182 187 } 183 188 184 uint_t read_length = read_samples / s->input_channels;185 186 /* where to store de-interleaved data */187 smpl_t *ptr_data;188 189 #ifdef HAVE_SAMPLERATE 189 190 if (s->ratio != 1) { … … 226 227 sf_count_t read_samples = aubio_sf_read_smpl (s->handle, s->scratch_data, 227 228 s->scratch_size); 229 uint_t read_length = read_samples / s->input_channels; 230 231 /* where to store de-interleaved data */ 232 smpl_t **ptr_data; 233 228 234 if (!s->handle) { 229 235 AUBIO_ERR("source_sndfile: could not read from %s (file was closed)\n", … … 233 239 } 234 240 235 uint_t read_length = read_samples / s->input_channels;236 237 /* where to store de-interleaved data */238 smpl_t **ptr_data;239 241 #ifdef HAVE_SAMPLERATE 240 242 if (s->ratio != 1) {
Note: See TracChangeset
for help on using the changeset viewer.