- Timestamp:
- Dec 31, 2013, 12:20:28 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:
- 5644069
- Parents:
- fe87823
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_sndfile.c
rfe87823 rc21acb9 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.