From ad2eac2a0413f1a7f536840acb4851058a8eb922 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 5 Mar 2017 19:29:33 +0100 Subject: [PATCH] src/io/sink.c: make sure an error is raised when no sink is built in --- src/io/sink.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/io/sink.c b/src/io/sink.c index e86d085d..c6e5da9d 100644 --- a/src/io/sink.c +++ b/src/io/sink.c @@ -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; } -- 2.11.0