Ignore:
Timestamp:
Jan 26, 2014, 9:18:22 PM (11 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/source_sndfile.c

    rc038740 r491e6ea  
    6767
    6868  if (path == NULL) {
    69     AUBIO_ERR("Aborted opening null path\n");
     69    AUBIO_ERR("source_sndfile: Aborted opening null path\n");
    7070    goto beach;
    7171  }
    7272  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);
    7474    goto beach;
    7575  }
    7676  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);
    7878    goto beach;
    7979  }
     
    8989  if (s->handle == NULL) {
    9090    /* 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));
    9292    goto beach;
    9393  }     
     
    108108
    109109  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",
    111111        MAX_SAMPLES / s->input_channels, s->input_channels);
    112112    goto beach;
     
    122122      // we would need to add a ring buffer for these
    123123      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,
    125125            s->input_samplerate, s->samplerate);
    126126        goto beach;
    127127      }
    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,
    129129          s->input_samplerate, s->samplerate);
    130130    }
     
    132132#else
    133133  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");
    135135    goto beach;
    136136  }
     
    273273  }
    274274  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));
    276276    return AUBIO_FAIL;
    277277  }
Note: See TracChangeset for help on using the changeset viewer.