shithub: aubio

Download patch

ref: bb96d027c3fb498e247b7a9cbb7393980f462eef
parent: cf19b8a8231deec641741007210ce57cd96332b5
author: Paul Brossier <piem@piem.org>
date: Tue Nov 29 07:08:42 EST 2016

src/io/sink_sndfile.c: improve error message

--- a/src/io/sink_sndfile.c
+++ b/src/io/sink_sndfile.c
@@ -141,7 +141,8 @@
 
   if (s->handle == NULL) {
     /* show libsndfile err msg */
-    AUBIO_ERR("sink_sndfile: Failed opening %s. %s\n", s->path, sf_strerror (NULL));
+    AUBIO_ERR("sink_sndfile: Failed opening \"%s\" with %d channels, %dHz: %s\n",
+        s->path, s->channels, s->samplerate, sf_strerror (NULL));
     return AUBIO_FAIL;
   }