diff options
author | David Robillard <d@drobilla.net> | 2012-04-19 22:55:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-19 22:55:59 +0000 |
commit | 73633203c55998baa6a5d96019b6d1f77307d2df (patch) | |
tree | 27b47a4e0a6f80c9576cd2b42728d62df9327571 /src | |
parent | ddb38fb552262a40a4f1c95cd083f9e5662022c8 (diff) | |
download | jalv-73633203c55998baa6a5d96019b6d1f77307d2df.tar.gz jalv-73633203c55998baa6a5d96019b6d1f77307d2df.tar.bz2 jalv-73633203c55998baa6a5d96019b6d1f77307d2df.zip |
Fix MIDI buffer size stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4210 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -756,7 +756,7 @@ main(int argc, char** argv) } /* Find plugin */ - printf("Plugin: %s\n", lilv_node_as_string(plugin_uri)); + printf("Plugin: %s\n", lilv_node_as_string(plugin_uri)); host.plugin = lilv_plugins_get_by_uri(plugins, plugin_uri); lilv_node_free(plugin_uri); if (!host.plugin) { @@ -784,7 +784,7 @@ main(int argc, char** argv) /* Create ringbuffers for UI if necessary */ if (host.ui) { - fprintf(stderr, "UI: %s\n", + fprintf(stderr, "UI: %s\n", lilv_node_as_uri(lilv_ui_get_uri(host.ui))); } else { fprintf(stderr, "No appropriate UI found\n"); @@ -812,7 +812,7 @@ main(int argc, char** argv) } /* Connect to JACK */ - printf("JACK Name: %s\n\n", jack_name); + printf("JACK Name: %s\n", jack_name); #ifdef JALV_JACK_SESSION if (host.opts.uuid) { host.jack_client = jack_client_open(jack_name, JackSessionID, NULL, @@ -830,15 +830,14 @@ main(int argc, char** argv) if (!host.jack_client) die("Failed to connect to JACK.\n"); -#ifdef jack_port_type_get_buffer_size +#ifdef HAVE_JACK_PORT_TYPE_GET_BUFFER_SIZE host.midi_buf_size = jack_port_type_get_buffer_size( host.jack_client, JACK_DEFAULT_MIDI_TYPE); - printf("MIDI buffer size: %zu\n", host.midi_buf_size); #else host.midi_buf_size = 4096; - fprintf(stderr, "warning: Old JACK, using default MIDI buffer size %zu\n", - host.midi_buf_size); + fprintf(stderr, "warning: No jack_port_type_get_buffer_size.\n"); #endif + printf("MIDI buffers: %zu bytes\n", host.midi_buf_size); /* Instantiate the plugin */ host.instance = lilv_plugin_instantiate( @@ -847,6 +846,7 @@ main(int argc, char** argv) die("Failed to instantiate plugin.\n"); } + fprintf(stderr, "\n"); if (!host.buf_size_set) { jalv_allocate_port_buffers(&host); } |