aboutsummaryrefslogtreecommitdiffstats
path: root/toolame.c
diff options
context:
space:
mode:
Diffstat (limited to 'toolame.c')
-rw-r--r--toolame.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/toolame.c b/toolame.c
index 1acde80..5d522df 100644
--- a/toolame.c
+++ b/toolame.c
@@ -1,8 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <jack/jack.h>
-#include <jack/ringbuffer.h>
+#if defined(JACK_INPUT)
+# include <jack/jack.h>
+# include <jack/ringbuffer.h>
+#endif
#include "common.h"
#include "encoder.h"
#include "musicin.h"
@@ -737,7 +739,18 @@ void short_usage (void)
fprintf (stderr, "Toolame-DAB version %s\n (http://opendigitalradio.org)\n",
toolameversion);
fprintf (stderr, "MPEG Audio Layer II encoder for DAB\n\n");
+#if defined(JACK_INPUT) && defined(VLC_INPUT)
fprintf (stderr, "USAGE: %s [options] (<infile>|-j <jackname>|-V <libvlc url>) [output]\n\n", programName);
+#elif defined(JACK_INPUT)
+ fprintf (stderr, "USAGE: %s [options] (<infile>|-j <jackname>) [output]\n\n", programName);
+ fprintf (stderr, "VLC input not compiled in\n");
+#elif defined(VLC_INPUT)
+ fprintf (stderr, "USAGE: %s [options] (<infile>|-V <libvlc url>) [output]\n\n", programName);
+ fprintf (stderr, "JACK input not compiled in\n");
+#else
+ fprintf (stderr, "USAGE: %s [options] <infile> [output]\n\n", programName);
+ fprintf (stderr, "Neither JACK nor libVLC input compiled in\n");
+#endif
fprintf (stderr, "Try \"%s -h\" for more information.\n", programName);
exit (0);
}
@@ -1047,10 +1060,10 @@ void parse_args (int argc, char **argv, frame_info * frame, int *psy,
}
if (glopts.input_select == INPUT_SELECT_JACK) {
+#if defined(JACK_INPUT)
musicin.jack_name = inPath;
*num_samples = MAX_U_32_NUM;
-#if defined(JACK_INPUT)
setup_jack(header, musicin.jack_name);
#else
fprintf(stderr, "JACK input not compiled in\n");