From: Paul Brossier Date: Fri, 24 Jan 2014 16:12:08 +0000 (-0300) Subject: src/io/source{,_wavread}.c: improve error message X-Git-Tag: 0.4.1~70 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=5ab8e59164cf33431a2a7275323a1d7c1bd4a26a;p=aubio.git src/io/source{,_wavread}.c: improve error message --- diff --git a/src/io/source.c b/src/io/source.c index cd3e328c..738a3217 100644 --- a/src/io/source.c +++ b/src/io/source.c @@ -103,7 +103,8 @@ aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_si return s; } #endif /* HAVE_WAVREAD */ - AUBIO_ERROR("failed creating aubio source with %s\n", uri); + AUBIO_ERROR("source: failed creating aubio source with %s" + " at samplerate %d with hop_size %d\n", uri, samplerate, hop_size); AUBIO_FREE(s); return NULL; } diff --git a/src/io/source_wavread.c b/src/io/source_wavread.c index 578cc986..751cbc32 100644 --- a/src/io/source_wavread.c +++ b/src/io/source_wavread.c @@ -224,8 +224,8 @@ aubio_source_wavread_t * new_aubio_source_wavread(char_t * path, uint_t samplera return s; beach: - AUBIO_ERR("source_wavread: can not read %s at samplerate %dHz with a hop_size of %d\n", - s->path, s->samplerate, s->hop_size); + //AUBIO_ERR("source_wavread: can not read %s at samplerate %dHz with a hop_size of %d\n", + // s->path, s->samplerate, s->hop_size); del_aubio_source_wavread(s); return NULL; }