Changeset 491e6ea for src/io/source_sndfile.c
- Timestamp:
- Jan 26, 2014, 9:18:22 PM (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:
- 2e17371
- Parents:
- c038740
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
rc038740 r491e6ea 67 67 68 68 if (path == NULL) { 69 AUBIO_ERR(" Aborted opening null path\n");69 AUBIO_ERR("source_sndfile: Aborted opening null path\n"); 70 70 goto beach; 71 71 } 72 72 if ((sint_t)samplerate < 0) { 73 AUBIO_ERR(" Can not open %s with samplerate %d\n", path, samplerate);73 AUBIO_ERR("source_sndfile: Can not open %s with samplerate %d\n", path, samplerate); 74 74 goto beach; 75 75 } 76 76 if ((sint_t)hop_size <= 0) { 77 AUBIO_ERR(" Can not open %s with hop_size %d\n", path, hop_size);77 AUBIO_ERR("source_sndfile: Can not open %s with hop_size %d\n", path, hop_size); 78 78 goto beach; 79 79 } … … 89 89 if (s->handle == NULL) { 90 90 /* show libsndfile err msg */ 91 AUBIO_ERR(" Failed opening %s: %s\n", s->path, sf_strerror (NULL));91 AUBIO_ERR("source_sndfile: Failed opening %s: %s\n", s->path, sf_strerror (NULL)); 92 92 goto beach; 93 93 } … … 108 108 109 109 if (s->input_hop_size * s->input_channels > MAX_SAMPLES) { 110 AUBIO_ERR(" Not able to process more than %d frames of %d channels\n",110 AUBIO_ERR("source_sndfile: Not able to process more than %d frames of %d channels\n", 111 111 MAX_SAMPLES / s->input_channels, s->input_channels); 112 112 goto beach; … … 122 122 // we would need to add a ring buffer for these 123 123 if ( (uint_t)(s->input_hop_size * s->ratio + .5) != s->hop_size ) { 124 AUBIO_ERR(" can not upsample %s from %d to %d\n", s->path,124 AUBIO_ERR("source_sndfile: can not upsample %s from %d to %d\n", s->path, 125 125 s->input_samplerate, s->samplerate); 126 126 goto beach; 127 127 } 128 AUBIO_WRN(" upsampling %s from %d to %d\n", s->path,128 AUBIO_WRN("source_sndfile: upsampling %s from %d to %d\n", s->path, 129 129 s->input_samplerate, s->samplerate); 130 130 } … … 132 132 #else 133 133 if (s->ratio != 1) { 134 AUBIO_ERR(" aubio was compiled without aubio_resampler\n");134 AUBIO_ERR("source_sndfile: aubio was compiled without aubio_resampler\n"); 135 135 goto beach; 136 136 } … … 273 273 } 274 274 if(sf_close(s->handle)) { 275 AUBIO_ERR(" Error closing file %s: %s", s->path, sf_strerror (NULL));275 AUBIO_ERR("source_sndfile: Error closing file %s: %s", s->path, sf_strerror (NULL)); 276 276 return AUBIO_FAIL; 277 277 }
Note: See TracChangeset
for help on using the changeset viewer.