From: Paul Brossier Date: Sun, 5 Mar 2017 18:29:33 +0000 (+0100) Subject: src/io/sink.c: make sure an error is raised when no sink is built in X-Git-Tag: 0.4.5~70 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=ad2eac2a0413f1a7f536840acb4851058a8eb922;p=aubio.git src/io/sink.c: make sure an error is raised when no sink is built in --- 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; }