Ignore:
Timestamp:
Jan 26, 2014, 9:18:22 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

src/io/: add missing error strings prefixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_sndfile.c

    rc038740 r491e6ea  
    5050
    5151  if (path == NULL) {
    52     AUBIO_ERR("Aborted opening null path\n");
     52    AUBIO_ERR("sink_sndfile: Aborted opening null path\n");
    5353    return NULL;
    5454  }
     
    7070  if (s->handle == NULL) {
    7171    /* 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));
    7373    AUBIO_FREE(s);
    7474    return NULL;
     
    7878  /* allocate data for de/interleaving reallocated when needed. */
    7979  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",
    8181        s->max_size, s->channels, MAX_CHANNELS * MAX_CHANNELS);
    8282    AUBIO_FREE(s);
     
    110110  written_frames = sf_write_float (s->handle, s->scratch_data, nsamples);
    111111  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",
    113113      write, s->path, (uint_t)written_frames);
    114114  }
     
    121121  }
    122122  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));
    124124    return AUBIO_FAIL;
    125125  }
Note: See TracChangeset for help on using the changeset viewer.