projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f2c515
)
examples/parse_args.h: only use jack where need be
author
Paul Brossier
<piem@piem.org>
Sat, 7 Dec 2013 14:03:59 +0000
(09:03 -0500)
committer
Paul Brossier
<piem@piem.org>
Sat, 7 Dec 2013 14:03:59 +0000
(09:03 -0500)
examples/parse_args.h
patch
|
blob
|
history
diff --git
a/examples/parse_args.h
b/examples/parse_args.h
index
0708c5e
..
66c47b1
100644
(file)
--- a/
examples/parse_args.h
+++ b/
examples/parse_args.h
@@
-215,13
+215,18
@@
parse_args (int argc, char **argv)
// if no source, show a message
if (source_uri == NULL) {
+#ifdef PROG_HAS_JACK
#if HAVE_JACK
verbmsg("No input source given, using jack\n");
usejack = 1;
#else
errmsg("Error: no arguments given (and no available audio input)\n");
usage ( stderr, 1 );
-#endif
+#endif /* HAVE_JACK */
+#else
+ errmsg("Error: no arguments given\n");
+ usage ( stderr, 1 );
+#endif /* PROG_HAS_JACK */
}
return 0;