projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
72af472
)
src/io/sink.c: make sure an error is raised when no sink is built in
author
Paul Brossier
<piem@piem.org>
Sun, 5 Mar 2017 18:29:33 +0000
(19:29 +0100)
committer
Paul Brossier
<piem@piem.org>
Sun, 5 Mar 2017 18:29:33 +0000
(19:29 +0100)
src/io/sink.c
patch
|
blob
|
history
diff --git
a/src/io/sink.c
b/src/io/sink.c
index
e86d085
..
c6e5da9
100644
(file)
--- 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 */
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;
}
AUBIO_FREE(s);
return NULL;
}