Changeset 491e6ea for src/io/sink_sndfile.c
- Timestamp:
- Jan 26, 2014, 9:18:22 PM (10 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:
- 2e17371
- Parents:
- c038740
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_sndfile.c
rc038740 r491e6ea 50 50 51 51 if (path == NULL) { 52 AUBIO_ERR(" Aborted opening null path\n");52 AUBIO_ERR("sink_sndfile: Aborted opening null path\n"); 53 53 return NULL; 54 54 } … … 70 70 if (s->handle == NULL) { 71 71 /* show libsndfile err msg */ 72 AUBIO_ERR(" Failed opening %s. %s\n", s->path, sf_strerror (NULL));72 AUBIO_ERR("sink_sndfile: Failed opening %s. %s\n", s->path, sf_strerror (NULL)); 73 73 AUBIO_FREE(s); 74 74 return NULL; … … 78 78 /* allocate data for de/interleaving reallocated when needed. */ 79 79 if (s->scratch_size >= MAX_SIZE * MAX_CHANNELS) { 80 AUBIO_ERR(" %d x %d exceeds maximum aubio_sink_sndfile buffer size %d\n",80 AUBIO_ERR("sink_sndfile: %d x %d exceeds maximum aubio_sink_sndfile buffer size %d\n", 81 81 s->max_size, s->channels, MAX_CHANNELS * MAX_CHANNELS); 82 82 AUBIO_FREE(s); … … 110 110 written_frames = sf_write_float (s->handle, s->scratch_data, nsamples); 111 111 if (written_frames/channels != write) { 112 AUBIO_WRN(" trying to write %d frames to %s, but only %d could be written",112 AUBIO_WRN("sink_sndfile: trying to write %d frames to %s, but only %d could be written", 113 113 write, s->path, (uint_t)written_frames); 114 114 } … … 121 121 } 122 122 if (sf_close(s->handle)) { 123 AUBIO_ERR(" Error closing file %s: %s", s->path, sf_strerror (NULL));123 AUBIO_ERR("sink_sndfile: Error closing file %s: %s", s->path, sf_strerror (NULL)); 124 124 return AUBIO_FAIL; 125 125 }
Note: See TracChangeset
for help on using the changeset viewer.