Changeset d4791e5 for src/io/sink_sndfile.c
- Timestamp:
- Jan 3, 2014, 12:47:22 AM (11 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:
- 2e01060
- Parents:
- 89e9e71 (diff), 4fe62ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_sndfile.c
r89e9e71 rd4791e5 47 47 aubio_sink_sndfile_t * new_aubio_sink_sndfile(char_t * path, uint_t samplerate) { 48 48 aubio_sink_sndfile_t * s = AUBIO_NEW(aubio_sink_sndfile_t); 49 SF_INFO sfinfo; 49 50 50 51 if (path == NULL) { … … 59 60 60 61 /* set output format */ 61 SF_INFO sfinfo;62 62 AUBIO_MEMSET(&sfinfo, 0, sizeof (sfinfo)); 63 63 sfinfo.samplerate = s->samplerate; … … 92 92 int nsamples = channels*write; 93 93 smpl_t *pwrite; 94 sf_count_t written_frames; 94 95 95 96 if (write > s->max_size) { … … 107 108 } 108 109 109 sf_count_twritten_frames = sf_write_float (s->handle, s->scratch_data, nsamples);110 written_frames = sf_write_float (s->handle, s->scratch_data, nsamples); 110 111 if (written_frames/channels != write) { 111 112 AUBIO_WRN("trying to write %d frames to %s, but only %d could be written",
Note: See TracChangeset
for help on using the changeset viewer.