Changeset 11e92ea
- Timestamp:
- Jul 15, 2012, 10:24:16 PM (12 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 5d1f716
- Parents:
- dd5a052
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_sndfile.c
rdd5a052 r11e92ea 37 37 uint_t channels; 38 38 char_t *path; 39 40 uint_t max_size; 41 39 42 SNDFILE *handle; 40 43 uint_t scratch_size; … … 71 74 } 72 75 73 s->scratch_size = s->max -size*s->channels;76 s->scratch_size = s->max_size*s->channels; 74 77 /* allocate data for de/interleaving reallocated when needed. */ 75 78 if (s->scratch_size >= MAX_SIZE * MAX_CHANNELS) { … … 90 93 91 94 if (write > s->max_size) { 95 AUBIO_WRN("trying to write %d frames, but only %d can be written at a time", 96 write, s->max_size); 92 97 write = s->max_size; 93 AUBIO_WRN("trying to write %d frames, but only %d can be written at a time",94 write, s->max_frames);95 98 } 96 99
Note: See TracChangeset
for help on using the changeset viewer.