diff options
author | David Robillard <d@drobilla.net> | 2012-04-27 01:17:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-27 01:17:31 +0000 |
commit | 0ad8f354bc936e09d7eb74fc18efd48c3842efd0 (patch) | |
tree | 36f26398d4646fd71c736fadae34894dc8508391 /src/jalv_console.c | |
parent | ad424892b0d45b2c46b6bc503e68e776f092af27 (diff) | |
download | jalv-0ad8f354bc936e09d7eb74fc18efd48c3842efd0.tar.gz jalv-0ad8f354bc936e09d7eb74fc18efd48c3842efd0.tar.bz2 jalv-0ad8f354bc936e09d7eb74fc18efd48c3842efd0.zip |
Add comm buffer size parameter and use Jack MIDI buffer size by default.
Fix running console version with arguments.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4281 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r-- | src/jalv_console.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c index 65708d0..5508532 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -31,6 +31,7 @@ print_usage(const char* name, bool error) fprintf(os, " -u UUID UUID for Jack session restoration\n"); fprintf(os, " -l DIR Load state from save directory\n"); fprintf(os, " -d DIR Dump plugin <=> UI communication\n"); + fprintf(os, " -b SIZE Buffer size for plugin <=> UI communication\n"); return error ? 1 : 0; } @@ -68,6 +69,12 @@ jalv_init(int* argc, char*** argv, JalvOptions* opts) return 1; } opts->load = jalv_strdup((*argv)[a]); + } else if ((*argv)[a][1] == 'b') { + if (++a == *argc) { + fprintf(stderr, "Missing argument for -b\n"); + return 1; + } + opts->buffer_size = atoi((*argv)[a]); } else if ((*argv)[a][1] == 'd') { opts->dump = true; } else { |