diff --git a/examples/circlescope.c b/examples/circlescope.c index 285de66..2315307 100644 --- a/examples/circlescope.c +++ b/examples/circlescope.c @@ -104,8 +104,10 @@ void jack_shutdown (void *arg) int main (int argc, char *argv[]) { jack_client_t *client; + static const char jack_client_name[] = "circlescope"; + jack_status_t jack_status; - if ((client = jack_client_new ("circlescope")) == 0) { + if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) { fprintf (stderr, "jack server not running?\n"); return 1; } diff --git a/examples/scope.c b/examples/scope.c index 7a28741..ed40443 100644 --- a/examples/scope.c +++ b/examples/scope.c @@ -104,8 +104,10 @@ void jack_shutdown (void *arg) int main (int argc, char *argv[]) { jack_client_t *client; + static const char jack_client_name[] = "scope"; + jack_status_t jack_status; - if ((client = jack_client_new ("circlescope")) == 0) { + if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) { fprintf (stderr, "jack server not running?\n"); return 1; } diff --git a/libol/libol.c b/libol/libol.c index eb2385c..3387d68 100644 --- a/libol/libol.c +++ b/libol/libol.c @@ -229,6 +229,9 @@ static int process (nframes_t nframes, void *arg) int olInit(int buffer_count, int max_points) { int i; + static const char jack_client_name[] = "libol"; + jack_status_t jack_status; + if (buffer_count < 2) return -1; @@ -257,7 +260,7 @@ int olInit(int buffer_count, int max_points) frames[i].audio_r = malloc(frames[i].pmax * sizeof(float)); } - if ((client = jack_client_new ("libol")) == 0) { + if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) { olLog ("jack server not running?\n"); return -1; } diff --git a/output/output.cpp b/output/output.cpp index 4fbda9b..61d93d1 100644 --- a/output/output.cpp +++ b/output/output.cpp @@ -226,13 +226,15 @@ int main (int argc, char *argv[]) { int retval; jack_client_t *client; + static const char jack_client_name[] = "output"; + jack_status_t jack_status; QApplication app(argc, argv); OutputSettings settings; cfg = &settings.cfg; - if ((client = jack_client_new ("output")) == 0) { + if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) { fprintf (stderr, "jack server not running?\n"); return 1; } diff --git a/tools/playilda.c b/tools/playilda.c index e0cf323..c184db7 100644 --- a/tools/playilda.c +++ b/tools/playilda.c @@ -459,6 +459,8 @@ int main (int argc, char *argv[]) char **argvp = &argv[1]; char *fname; jack_client_t *client; + static const char jack_client_name[] = "playilda"; + jack_status_t jack_status; struct stat st1, st2; if (argc > 2 && !strcmp(argvp[0],"-s")) { @@ -478,7 +480,7 @@ int main (int argc, char *argv[]) pointrate = atoi(argvp[1]); } - if ((client = jack_client_new ("playilda")) == 0) { + if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) { fprintf (stderr, "jack server not running?\n"); return 1; } diff --git a/tools/simulator.c b/tools/simulator.c index 8ca4bd9..ccfaa4d 100644 --- a/tools/simulator.c +++ b/tools/simulator.c @@ -231,7 +231,10 @@ void init_gl(int width, int height) int main (int argc, char *argv[]) { - if ((client = jack_client_new ("simulator")) == 0) { + static const char jack_client_name[] = "simulator"; + jack_status_t jack_status; + + if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) { fprintf (stderr, "jack server not running?\n"); return 1; }