From 48a23e68b6eb6a23a4bd2e0a1fdfef339eaa7533 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 29 Jul 2008 16:58:35 +0000 Subject: Fix connecting via OSC. git-svn-id: http://svn.drobilla.net/lad/ingen@1304 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingen/main.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/progs') diff --git a/src/progs/ingen/main.cpp b/src/progs/ingen/main.cpp index 23609ee2..483fe7ef 100644 --- a/src/progs/ingen/main.cpp +++ b/src/progs/ingen/main.cpp @@ -104,7 +104,7 @@ main(int argc, char** argv) engine = SharedPtr(new_engine(world)); world->local_engine = engine; /* Load queued (direct in-process) engine interface */ - if (!args.connect_given) { + if (!args.connect_given && args.gui_given) { engine_interface = engine->new_queued_interface(); world->engine = engine_interface; } @@ -116,8 +116,6 @@ main(int argc, char** argv) } } - bool use_osc = false; - /* Load client library */ if (args.connect_given || args.load_given) { client_module = Ingen::Shared::load_module("ingen_client"); @@ -126,16 +124,11 @@ main(int argc, char** argv) } /* Connect to remote engine */ - if (args.connect_given || (args.load_given && !engine_interface)) { + if (client_module && (args.connect_given || (args.load_given && !engine_interface))) { SharedPtr (*new_osc_interface)(const std::string&) = NULL; - bool found = false; - if (client_module) - found = client_module->get_symbol("new_osc_interface", (void*&)new_osc_interface); - - if (client_module && found) { + if (client_module->get_symbol("new_osc_interface", (void*&)new_osc_interface)) { engine_interface = new_osc_interface(args.connect_arg); - use_osc = true; } else { cerr << "Unable to load ingen_client module, aborting." << endl; return -1; @@ -144,12 +137,7 @@ main(int argc, char** argv) if (engine && engine_interface) { - - if (use_osc) - engine->start_osc_driver(args.engine_port_arg); - engine->start_jack_driver(); - engine->activate(args.parallelism_arg); } -- cgit v1.2.1