return s;
}
#endif /* HAVE_WAVWRITE */
-#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);
+#if !defined(HAVE_WAVWRITE) && \
+ !defined(HAVE_SNDFILE) && \
+ !defined(HAVE_SINK_APPLE_AUDIO)
+ AUBIO_ERROR("sink: failed creating '%s' at %dHz (no sink built-in)\n", uri, samplerate);
#endif
AUBIO_FREE(s);
return NULL;
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 */
+#if !defined(HAVE_WAVREAD) && \
+ !defined(HAVE_LIBAV) && \
+ !defined(HAVE_SOURCE_APPLE_AUDIO) && \
+ !defined(HAVE_SNDFILE)
+ AUBIO_ERROR("source: failed creating with %s at %dHz with hop size %d"
+ " (no source built-in)\n", uri, samplerate, hop_size);
+#endif
AUBIO_FREE(s);
return NULL;
}