diff options
author | David Robillard <d@drobilla.net> | 2007-01-06 19:39:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-06 19:39:56 +0000 |
commit | 69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f (patch) | |
tree | 68fd1ea83beedaaaa97846ed09240a3585b2d931 /src/libs/engine/Engine.cpp | |
parent | 2122a857662203936a04a39df7d0e1ad1db82853 (diff) | |
download | ingen-69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f.tar.gz ingen-69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f.tar.bz2 ingen-69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f.zip |
Added ability to get Raul Thread for current calling context.
Strong threading assertions.
Flowcanvas port removal fixes.
Patch port destruction.
Code cleanups, bug fixes.
git-svn-id: http://svn.drobilla.net/lad/ingen@234 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Engine.cpp')
-rw-r--r-- | src/libs/engine/Engine.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libs/engine/Engine.cpp b/src/libs/engine/Engine.cpp index b83c7244..1af94931 100644 --- a/src/libs/engine/Engine.cpp +++ b/src/libs/engine/Engine.cpp @@ -161,16 +161,16 @@ Engine::activate(SharedPtr<AudioDriver> ad, SharedPtr<EventSource> es) m_event_source->activate(); // Create root patch - CreatePatchEvent create_ev(*this, SharedPtr<Responder>(new Responder()), 0, "/", 1); - create_ev.pre_process(); - create_ev.execute(1, 0, 1); - create_ev.post_process(); - EnablePatchEvent enable_ev(*this, SharedPtr<Responder>(new Responder()), 0, "/"); - enable_ev.pre_process(); - enable_ev.execute(1, 0, 1); - enable_ev.post_process(); - - assert(m_audio_driver->root_patch() != NULL); + + Patch* root_patch = new Patch("", 1, NULL, + m_audio_driver->sample_rate(), m_audio_driver->buffer_size(), 1); + root_patch->activate(); + root_patch->add_to_store(m_object_store); + root_patch->process_order(root_patch->build_process_order()); + root_patch->enable(); + + assert(m_audio_driver->root_patch() == NULL); + m_audio_driver->set_root_patch(root_patch); m_audio_driver->activate(); #ifdef HAVE_ALSA_MIDI |