src/io/source{,_wavread}.c: improve error message
authorPaul Brossier <piem@piem.org>
Fri, 24 Jan 2014 16:12:08 +0000 (13:12 -0300)
committerPaul Brossier <piem@piem.org>
Fri, 24 Jan 2014 16:12:08 +0000 (13:12 -0300)
src/io/source.c
src/io/source_wavread.c

index cd3e328..738a321 100644 (file)
@@ -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;
 }
index 578cc98..751cbc3 100644 (file)
@@ -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;
 }