summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-12-09 19:07:40 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-12-09 19:07:40 +0100
commitdb206c479ff03852f8adbfa02382d0f3d92bf408 (patch)
tree361f6b030c68c6a6fe3674817bd7ba73df8d664b /src
parentc7d6d3fcc75fcf702540a955665e6d9d505dadcb (diff)
downloadfdk-aac-db206c479ff03852f8adbfa02382d0f3d92bf408.tar.gz
fdk-aac-db206c479ff03852f8adbfa02382d0f3d92bf408.tar.bz2
fdk-aac-db206c479ff03852f8adbfa02382d0f3d92bf408.zip
Show in usage screen when JACK disabled
Diffstat (limited to 'src')
-rw-r--r--src/dabplus-enc.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp
index 684d3a7..1117277 100644
--- a/src/dabplus-enc.cpp
+++ b/src/dabplus-enc.cpp
@@ -52,11 +52,7 @@ void usage(const char* name) {
fprintf(stderr,
"dabplus-enc %s is a HE-AACv2 encoder for DAB+\n"
"based on fdk-aac-dabplus that can read from"
-#if HAVE_JACK
- " JACK, ALSA or a file source\n"
-#else
- " a ALSA or file source\n"
-#endif
+ "JACK, ALSA or a file source\n"
"and encode to a ZeroMQ output for ODR-DabMux.\n"
"\n"
"The -D option enables experimental sound card clock drift compensation.\n"
@@ -90,9 +86,11 @@ void usage(const char* name) {
" -i, --input=FILENAME Input filename (default: stdin).\n"
" -f, --format={ wav, raw } Set input file format (default: wav).\n"
" --fifo-silence Input file is fifo and encoder generates silence when fifo is empty. Ignore EOF.\n"
-#if HAVE_JACK
" For the JACK input:\n"
+#if HAVE_JACK
" -j, --jack=name Enable JACK input, and define our name\n"
+#else
+ " The JACK input was disabled at compile-time\n"
#endif
" Encoder parameters:\n"
" -b, --bitrate={ 8, 16, ..., 192 } Output bitrate in kbps. Must be a multiple of 8.\n"
@@ -282,9 +280,7 @@ int main(int argc, char *argv[])
{"device", required_argument, 0, 'd'},
{"format", required_argument, 0, 'f'},
{"input", required_argument, 0, 'i'},
-#if HAVE_JACK
{"jack", required_argument, 0, 'j'},
-#endif
{"output", required_argument, 0, 'o'},
{"pad", required_argument, 0, 'p'},
{"pad-fifo", required_argument, 0, 'P'},
@@ -364,11 +360,14 @@ int main(int argc, char *argv[])
case 'i':
infile = optarg;
break;
-#if HAVE_JACK
case 'j':
+#if HAVE_JACK
jack_name = optarg;
- break;
+#else
+ fprintf(stderr, "JACK disabled at compile time!\n");
+ return 1;
#endif
+ break;
case 'k':
keyfile = optarg;
break;