From a9516b395e3e307d92752b36ef021a2cac06a429 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 16 Dec 2016 12:59:30 +0100 Subject: [PATCH] src/io/source.c: add error message when aubio was compiled with no source --- src/io/source.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.11.0