From 5ab8e59164cf33431a2a7275323a1d7c1bd4a26a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 24 Jan 2014 13:12:08 -0300 Subject: [PATCH] src/io/source{,_wavread}.c: improve error message --- src/io/source.c | 3 ++- src/io/source_wavread.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.11.0