aboutsummaryrefslogtreecommitdiffstats
path: root/toolame.c
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-24 09:47:45 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-24 09:47:45 +0100
commit4cca632532d3e315d68768e00549ac2047232e55 (patch)
tree6878a4d5db926f0ead83de116dfef2a82ebe90ab /toolame.c
parent50d95edfafa3d17ef3740831408017df60d6534f (diff)
downloadtoolame-dab-4cca632532d3e315d68768e00549ac2047232e55.tar.gz
toolame-dab-4cca632532d3e315d68768e00549ac2047232e55.tar.bz2
toolame-dab-4cca632532d3e315d68768e00549ac2047232e55.zip
Improve compilation without JACK
Diffstat (limited to 'toolame.c')
-rw-r--r--toolame.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/toolame.c b/toolame.c
index 03d4d95..a651149 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"
@@ -1052,10 +1054,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");