src/io/sink.c: make sure an error is raised when no sink is built in
authorPaul Brossier <piem@piem.org>
Sun, 5 Mar 2017 18:29:33 +0000 (19:29 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 5 Mar 2017 18:29:33 +0000 (19:29 +0100)
src/io/sink.c

index e86d085..c6e5da9 100644 (file)
@@ -97,8 +97,10 @@ aubio_sink_t * new_aubio_sink(const char_t * uri, uint_t samplerate) {
     return s;
   }
 #endif /* HAVE_WAVWRITE */
-  //AUBIO_ERROR("sink: failed creating '%s' with samplerate %dHz\n",
-  //    uri, samplerate);
+#if !defined(HAVE_WAVWRITE) && !defined(HAVE_SNDFILE) && !defined(HAVE_SINK_APPLE_AUDIO)
+  AUBIO_ERROR("sink: failed creating '%s' (no sink built-in)\n",
+      uri, samplerate);
+#endif
   AUBIO_FREE(s);
   return NULL;
 }