From: Paul Brossier Date: Fri, 16 Dec 2016 11:59:30 +0000 (+0100) Subject: src/io/source.c: add error message when aubio was compiled with no source X-Git-Tag: 0.4.4~54 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=a9516b395e3e307d92752b36ef021a2cac06a429;p=aubio.git src/io/source.c: add error message when aubio was compiled with no source --- diff --git a/src/io/source.c b/src/io/source.c index 7f4049ad..beb198fc 100644 --- a/src/io/source.c +++ b/src/io/source.c @@ -113,9 +113,12 @@ aubio_source_t * new_aubio_source(const char_t * uri, uint_t samplerate, uint_t 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; }