From b5b6dba0480b3dcec4b130ea606d63f4a3854920 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Jul 2006 04:15:03 +0000 Subject: 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 --- src/libs/engine/events/CreatePatchEvent.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/libs/engine/events/CreatePatchEvent.cpp') 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, 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(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(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: "; -- cgit v1.2.1