diff options
author | David Robillard <d@drobilla.net> | 2006-07-20 04:15:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-20 04:15:03 +0000 |
commit | b5b6dba0480b3dcec4b130ea606d63f4a3854920 (patch) | |
tree | 22e3c06d815da7b33f6061253c94cf3621b37265 /src/libs/engine/events/CreatePatchEvent.cpp | |
parent | 767b10d6fa3313b2bd4e1dcc0d96dda3409c4944 (diff) | |
download | ingen-b5b6dba0480b3dcec4b130ea606d63f4a3854920.tar.gz ingen-b5b6dba0480b3dcec4b130ea606d63f4a3854920.tar.bz2 ingen-b5b6dba0480b3dcec4b130ea606d63f4a3854920.zip |
Renamed Engine class to "Engine" (from "Ingen") to avoid confusion with namespace Ingen
git-svn-id: http://svn.drobilla.net/lad/ingen@99 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/CreatePatchEvent.cpp')
-rw-r--r-- | src/libs/engine/events/CreatePatchEvent.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libs/engine/events/CreatePatchEvent.cpp b/src/libs/engine/events/CreatePatchEvent.cpp index 50e99c64..65e2106d 100644 --- a/src/libs/engine/events/CreatePatchEvent.cpp +++ b/src/libs/engine/events/CreatePatchEvent.cpp @@ -20,7 +20,7 @@ #include "Node.h" #include "Tree.h" #include "Plugin.h" -#include "Ingen.h" +#include "Engine.h" #include "Maid.h" #include "ClientBroadcaster.h" #include "AudioDriver.h" @@ -45,7 +45,7 @@ CreatePatchEvent::CreatePatchEvent(CountedPtr<Responder> responder, SampleCount void CreatePatchEvent::pre_process() { - if (Ingen::instance().object_store()->find(m_path) != NULL) { + if (Engine::instance().object_store()->find(m_path) != NULL) { m_error = OBJECT_EXISTS; QueuedEvent::pre_process(); return; @@ -58,7 +58,7 @@ CreatePatchEvent::pre_process() } if (m_path != "/") { - m_parent = Ingen::instance().object_store()->find_patch(m_path.parent()); + m_parent = Engine::instance().object_store()->find_patch(m_path.parent()); if (m_parent == NULL) { m_error = PARENT_NOT_FOUND; QueuedEvent::pre_process(); @@ -70,7 +70,7 @@ CreatePatchEvent::pre_process() if (m_parent != NULL && m_poly > 1 && m_poly == static_cast<int>(m_parent->internal_poly())) poly = m_poly; - m_patch = new Patch(m_path.name(), poly, m_parent, Ingen::instance().audio_driver()->sample_rate(), Ingen::instance().audio_driver()->buffer_size(), m_poly); + m_patch = new Patch(m_path.name(), poly, m_parent, Engine::instance().audio_driver()->sample_rate(), Engine::instance().audio_driver()->buffer_size(), m_poly); if (m_parent != NULL) { m_parent->add_node(new ListNode<Node*>(m_patch)); @@ -97,7 +97,7 @@ CreatePatchEvent::execute(SampleCount offset) if (m_parent == NULL) { assert(m_path == "/"); assert(m_patch->parent_patch() == NULL); - Ingen::instance().audio_driver()->set_root_patch(m_patch); + Engine::instance().audio_driver()->set_root_patch(m_patch); } else { assert(m_parent != NULL); assert(m_path != "/"); @@ -105,7 +105,7 @@ CreatePatchEvent::execute(SampleCount offset) m_patch->add_to_patch(); if (m_parent->process_order() != NULL) - Ingen::instance().maid()->push(m_parent->process_order()); + Engine::instance().maid()->push(m_parent->process_order()); m_parent->process_order(m_process_order); } } @@ -121,10 +121,10 @@ CreatePatchEvent::post_process() _responder->respond_ok(); // Don't want to send nodes that have been added since prepare() - //Ingen::instance().client_broadcaster()->send_node_creation_messages(m_patch); + //Engine::instance().client_broadcaster()->send_node_creation_messages(m_patch); // Patches are always empty on creation, so this is fine - Ingen::instance().client_broadcaster()->send_patch(m_patch); + Engine::instance().client_broadcaster()->send_patch(m_patch); } else if (m_error == OBJECT_EXISTS) { string msg = "Unable to create patch: "; |