shithub: aubio

Download patch

ref: a9516b395e3e307d92752b36ef021a2cac06a429
parent: 3388e1ab17ecec46e4db282ee01383a0d4b4047a
author: Paul Brossier <piem@piem.org>
date: Fri Dec 16 07:59:30 EST 2016

src/io/source.c: add error message when aubio was compiled with no source

--- a/src/io/source.c
+++ b/src/io/source.c
@@ -113,9 +113,12 @@
     s->s_del = (del_aubio_source_t)(del_aubio_source_wavread);
     return s;
   }
+#else /* failover message */
+#if !(defined(HAVE_LIBAV) || defined(HAVE_SOURCE_APPLE_AUDIO) || defined(HAVE_SNDFILE))
+  AUBIO_ERROR("source: failed creating aubio source with %s"
+     " at samplerate %d with hop_size %d\n", uri, samplerate, hop_size);
+#endif /* failover */
 #endif /* HAVE_WAVREAD */
-  //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;
 }