diff options
author | David Robillard <d@drobilla.net> | 2006-12-12 12:45:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-12-12 12:45:33 +0000 |
commit | 71f632d459471c2e75ed04b808df9671539a182c (patch) | |
tree | 2fe3c25243e7b915656c02dd46bca5a0d317b599 /src/progs/ingenuity | |
parent | 9e2a757e026abf79d0cdcf12a18796fa89973356 (diff) | |
download | ingen-71f632d459471c2e75ed04b808df9671539a182c.tar.gz ingen-71f632d459471c2e75ed04b808df9671539a182c.tar.bz2 ingen-71f632d459471c2e75ed04b808df9671539a182c.zip |
Connection loading.
Command line parameter for server to allow connecting to specific JACK server.
git-svn-id: http://svn.drobilla.net/lad/ingen@217 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity')
-rw-r--r-- | src/progs/ingenuity/ConnectWindow.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/progs/ingenuity/ConnectWindow.cpp b/src/progs/ingenuity/ConnectWindow.cpp index c2c746bf..302cb08a 100644 --- a/src/progs/ingenuity/ConnectWindow.cpp +++ b/src/progs/ingenuity/ConnectWindow.cpp @@ -29,8 +29,9 @@ #include "App.h" #include "WindowFactory.h" #ifdef MONOLITHIC_INGENUITY - #include "engine/QueuedEngineInterface.h" #include "engine/Engine.h" + #include "engine/JackAudioDriver.h" + #include "engine/QueuedEngineInterface.h" #include "engine/DirectResponder.h" #include "engine/tuning.h" #endif @@ -169,16 +170,19 @@ ConnectWindow::connect() #ifdef MONOLITHIC_INGENUITY } else if (_mode == INTERNAL) { SharedPtr<Ingen::Engine> engine(new Ingen::Engine()); - QueuedModelEngineInterface* qmei = new QueuedModelEngineInterface(engine); - SharedPtr<ModelEngineInterface> engine_interface(qmei); + SharedPtr<Ingen::AudioDriver> audio_driver( + new Ingen::JackAudioDriver(*engine.get()) ); + SharedPtr<QueuedModelEngineInterface> engine_interface( + new QueuedModelEngineInterface(engine) ); ThreadedSigClientInterface* tsci = new ThreadedSigClientInterface(Ingen::event_queue_size); SharedPtr<SigClientInterface> client(tsci); App::instance().attach(engine_interface, client); - qmei->set_responder(SharedPtr<Ingen::Responder>(new Ingen::DirectResponder(client, 1))); - engine->set_event_source(qmei); - + engine_interface->set_responder(SharedPtr<Ingen::Responder>(new Ingen::DirectResponder(client, 1))); + + engine->activate(audio_driver, engine_interface); + Glib::signal_timeout().connect( sigc::mem_fun(engine.get(), &Ingen::Engine::main_iteration), 1000); |