summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r--src/libs/engine/events/ActivateEvent.cpp4
-rw-r--r--src/libs/engine/events/AddNodeEvent.cpp16
-rw-r--r--src/libs/engine/events/AddPortEvent.cpp18
-rw-r--r--src/libs/engine/events/AllNotesOffEvent.cpp4
-rw-r--r--src/libs/engine/events/ClearPatchEvent.cpp8
-rw-r--r--src/libs/engine/events/ConnectionEvent.cpp12
-rw-r--r--src/libs/engine/events/CreatePatchEvent.cpp16
-rw-r--r--src/libs/engine/events/DSSIConfigureEvent.cpp6
-rw-r--r--src/libs/engine/events/DSSIControlEvent.cpp4
-rw-r--r--src/libs/engine/events/DSSIProgramEvent.cpp6
-rw-r--r--src/libs/engine/events/DSSIUpdateEvent.cpp4
-rw-r--r--src/libs/engine/events/DeactivateEvent.cpp4
-rw-r--r--src/libs/engine/events/DestroyEvent.cpp12
-rw-r--r--src/libs/engine/events/DisablePatchEvent.cpp6
-rw-r--r--src/libs/engine/events/DisconnectNodeEvent.cpp6
-rw-r--r--src/libs/engine/events/DisconnectPortEvent.cpp6
-rw-r--r--src/libs/engine/events/DisconnectionEvent.cpp18
-rw-r--r--src/libs/engine/events/EnablePatchEvent.cpp6
-rw-r--r--src/libs/engine/events/LoadPluginsEvent.cpp4
-rw-r--r--src/libs/engine/events/MidiLearnEvent.cpp6
-rw-r--r--src/libs/engine/events/NoteOffEvent.cpp4
-rw-r--r--src/libs/engine/events/NoteOnEvent.cpp4
-rw-r--r--src/libs/engine/events/RegisterClientEvent.cpp4
-rw-r--r--src/libs/engine/events/RenameEvent.cpp8
-rw-r--r--src/libs/engine/events/RequestAllObjectsEvent.cpp2
-rw-r--r--src/libs/engine/events/RequestMetadataEvent.cpp4
-rw-r--r--src/libs/engine/events/RequestPluginsEvent.cpp4
-rw-r--r--src/libs/engine/events/RequestPortValueEvent.cpp4
-rw-r--r--src/libs/engine/events/SetMetadataEvent.cpp6
-rw-r--r--src/libs/engine/events/SetPortValueEvent.cpp8
-rw-r--r--src/libs/engine/events/SetPortValueQueuedEvent.cpp8
-rw-r--r--src/libs/engine/events/UnregisterClientEvent.cpp4
32 files changed, 113 insertions, 113 deletions
diff --git a/src/libs/engine/events/ActivateEvent.cpp b/src/libs/engine/events/ActivateEvent.cpp
index 7de723c3..31a218ad 100644
--- a/src/libs/engine/events/ActivateEvent.cpp
+++ b/src/libs/engine/events/ActivateEvent.cpp
@@ -16,7 +16,7 @@
#include "ActivateEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
namespace Ingen {
@@ -32,7 +32,7 @@ ActivateEvent::pre_process()
{
QueuedEvent::pre_process();
- Ingen::instance().activate();
+ Engine::instance().activate();
}
diff --git a/src/libs/engine/events/AddNodeEvent.cpp b/src/libs/engine/events/AddNodeEvent.cpp
index 7e5e70a4..4f8d099a 100644
--- a/src/libs/engine/events/AddNodeEvent.cpp
+++ b/src/libs/engine/events/AddNodeEvent.cpp
@@ -20,7 +20,7 @@
#include "Node.h"
#include "Tree.h"
#include "Plugin.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Patch.h"
#include "NodeFactory.h"
#include "ClientBroadcaster.h"
@@ -55,19 +55,19 @@ AddNodeEvent::~AddNodeEvent()
void
AddNodeEvent::pre_process()
{
- if (Ingen::instance().object_store()->find(m_path) != NULL) {
+ if (Engine::instance().object_store()->find(m_path) != NULL) {
m_node_already_exists = true;
QueuedEvent::pre_process();
return;
}
- m_patch = Ingen::instance().object_store()->find_patch(m_path.parent());
+ m_patch = Engine::instance().object_store()->find_patch(m_path.parent());
if (m_patch != NULL) {
if (m_poly)
- m_node = Ingen::instance().node_factory()->load_plugin(m_plugin, m_path.name(), m_patch->internal_poly(), m_patch);
+ m_node = Engine::instance().node_factory()->load_plugin(m_plugin, m_path.name(), m_patch->internal_poly(), m_patch);
else
- m_node = Ingen::instance().node_factory()->load_plugin(m_plugin, m_path.name(), 1, m_patch);
+ m_node = Engine::instance().node_factory()->load_plugin(m_plugin, m_path.name(), 1, m_patch);
if (m_node != NULL) {
m_node->activate();
@@ -94,7 +94,7 @@ AddNodeEvent::execute(SampleCount offset)
m_node->add_to_patch();
if (m_patch->process_order() != NULL)
- Ingen::instance().maid()->push(m_patch->process_order());
+ Engine::instance().maid()->push(m_patch->process_order());
m_patch->process_order(m_process_order);
}
}
@@ -117,8 +117,8 @@ AddNodeEvent::post_process()
_responder->respond_error(msg);
} else {
_responder->respond_ok();
- //Ingen::instance().client_broadcaster()->send_node_creation_messages(m_node);
- Ingen::instance().client_broadcaster()->send_node(m_node);
+ //Engine::instance().client_broadcaster()->send_node_creation_messages(m_node);
+ Engine::instance().client_broadcaster()->send_node(m_node);
}
}
diff --git a/src/libs/engine/events/AddPortEvent.cpp b/src/libs/engine/events/AddPortEvent.cpp
index 9f6439e8..cf40b45f 100644
--- a/src/libs/engine/events/AddPortEvent.cpp
+++ b/src/libs/engine/events/AddPortEvent.cpp
@@ -19,7 +19,7 @@
#include "Patch.h"
#include "Tree.h"
#include "Plugin.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Patch.h"
#include "Maid.h"
#include "util/Path.h"
@@ -57,21 +57,21 @@ AddPortEvent::AddPortEvent(CountedPtr<Responder> responder, SampleCount timestam
void
AddPortEvent::pre_process()
{
- if (Ingen::instance().object_store()->find(_path) != NULL) {
+ if (Engine::instance().object_store()->find(_path) != NULL) {
QueuedEvent::pre_process();
return;
}
// FIXME: this is just a mess :/
- _patch = Ingen::instance().object_store()->find_patch(_path.parent());
+ _patch = Engine::instance().object_store()->find_patch(_path.parent());
if (_patch != NULL) {
assert(_patch->path() == _path.parent());
size_t buffer_size = 1;
if (_type == "AUDIO" || _type == "MIDI")
- buffer_size = Ingen::instance().audio_driver()->buffer_size();
+ buffer_size = Engine::instance().audio_driver()->buffer_size();
_patch_port = _patch->create_port(_path.name(), _data_type, buffer_size, _is_output);
if (_patch_port) {
@@ -86,14 +86,14 @@ AddPortEvent::pre_process()
_ports_array = new Array<Port*>(_patch->num_ports() + 1, NULL);
_ports_array->at(_patch->num_ports()) = _patch_port;
- Ingen::instance().object_store()->add(_patch_port);
+ Engine::instance().object_store()->add(_patch_port);
if (!_patch->parent()) {
if (_type == "AUDIO")
- _driver_port = Ingen::instance().audio_driver()->create_port(
+ _driver_port = Engine::instance().audio_driver()->create_port(
dynamic_cast<DuplexPort<Sample>*>(_patch_port));
else if (_type == "MIDI")
- _driver_port = Ingen::instance().midi_driver()->create_port(
+ _driver_port = Engine::instance().midi_driver()->create_port(
dynamic_cast<DuplexPort<MidiMessage>*>(_patch_port));
}
}
@@ -108,7 +108,7 @@ AddPortEvent::execute(SampleCount offset)
QueuedEvent::execute(offset);
if (_patch_port) {
- Ingen::instance().maid()->push(_patch->external_ports());
+ Engine::instance().maid()->push(_patch->external_ports());
//_patch->add_port(_port);
_patch->external_ports(_ports_array);
}
@@ -126,7 +126,7 @@ AddPortEvent::post_process()
_responder->respond_error(msg);
} else {
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_port(_patch_port);
+ Engine::instance().client_broadcaster()->send_port(_patch_port);
}
}
diff --git a/src/libs/engine/events/AllNotesOffEvent.cpp b/src/libs/engine/events/AllNotesOffEvent.cpp
index fceb47d6..349c6cd5 100644
--- a/src/libs/engine/events/AllNotesOffEvent.cpp
+++ b/src/libs/engine/events/AllNotesOffEvent.cpp
@@ -16,7 +16,7 @@
#include "AllNotesOffEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ObjectStore.h"
namespace Ingen {
@@ -45,7 +45,7 @@ void
AllNotesOffEvent::execute(SampleCount offset)
{
if (m_patch == NULL && m_patch_path != "")
- m_patch = Ingen::instance().object_store()->find_patch(m_patch_path);
+ m_patch = Engine::instance().object_store()->find_patch(m_patch_path);
//if (m_patch != NULL)
// for (List<MidiInNode*>::iterator j = m_patch->midi_in_nodes().begin(); j != m_patch->midi_in_nodes().end(); ++j)
diff --git a/src/libs/engine/events/ClearPatchEvent.cpp b/src/libs/engine/events/ClearPatchEvent.cpp
index c6e1d36c..3cd8faab 100644
--- a/src/libs/engine/events/ClearPatchEvent.cpp
+++ b/src/libs/engine/events/ClearPatchEvent.cpp
@@ -16,7 +16,7 @@
#include "ClearPatchEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Patch.h"
#include "ClientBroadcaster.h"
#include "util.h"
@@ -42,7 +42,7 @@ ClearPatchEvent::ClearPatchEvent(CountedPtr<Responder> responder, SampleCount ti
void
ClearPatchEvent::pre_process()
{
- m_patch = Ingen::instance().object_store()->find_patch(m_patch_path);
+ m_patch = Engine::instance().object_store()->find_patch(m_patch_path);
if (m_patch != NULL) {
@@ -66,7 +66,7 @@ ClearPatchEvent::execute(SampleCount offset)
(*i)->remove_from_patch();
if (m_patch->process_order() != NULL) {
- Ingen::instance().maid()->push(m_patch->process_order());
+ Engine::instance().maid()->push(m_patch->process_order());
m_patch->process_order(NULL);
}
}
@@ -100,7 +100,7 @@ ClearPatchEvent::post_process()
// Reply
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_patch_cleared(m_patch_path);
+ Engine::instance().client_broadcaster()->send_patch_cleared(m_patch_path);
} else {
_responder->respond_error(string("Patch ") + m_patch_path + " not found");
}
diff --git a/src/libs/engine/events/ConnectionEvent.cpp b/src/libs/engine/events/ConnectionEvent.cpp
index 27da617d..bf64df0a 100644
--- a/src/libs/engine/events/ConnectionEvent.cpp
+++ b/src/libs/engine/events/ConnectionEvent.cpp
@@ -18,7 +18,7 @@
#include <string>
#include "Responder.h"
#include "types.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "TypedConnection.h"
#include "InputPort.h"
#include "OutputPort.h"
@@ -66,7 +66,7 @@ ConnectionEvent::pre_process()
return;
}
- /*m_patch = Ingen::instance().object_store()->find_patch(m_src_port_path.parent().parent());
+ /*m_patch = Engine::instance().object_store()->find_patch(m_src_port_path.parent().parent());
if (m_patch == NULL) {
m_error = PORT_NOT_FOUND;
@@ -74,8 +74,8 @@ ConnectionEvent::pre_process()
return;
}*/
- m_src_port = Ingen::instance().object_store()->find_port(m_src_port_path);
- m_dst_port = Ingen::instance().object_store()->find_port(m_dst_port_path);
+ m_src_port = Engine::instance().object_store()->find_port(m_src_port_path);
+ m_dst_port = Engine::instance().object_store()->find_port(m_dst_port_path);
if (m_src_port == NULL || m_dst_port == NULL) {
m_error = PORT_NOT_FOUND;
@@ -235,7 +235,7 @@ TypedConnectionEvent<T>::execute(SampleCount offset)
m_dst_port->add_connection(m_port_listnode);
m_patch->add_connection(m_patch_listnode);
if (m_patch->process_order() != NULL)
- Ingen::instance().maid()->push(m_patch->process_order());
+ Engine::instance().maid()->push(m_patch->process_order());
m_patch->process_order(m_process_order);
}
}
@@ -250,7 +250,7 @@ TypedConnectionEvent<T>::post_process()
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_connection(m_connection);
+ Engine::instance().client_broadcaster()->send_connection(m_connection);
} else {
_responder->respond_error("Unable to make connection.");
}
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: ";
diff --git a/src/libs/engine/events/DSSIConfigureEvent.cpp b/src/libs/engine/events/DSSIConfigureEvent.cpp
index f8899304..59a7401c 100644
--- a/src/libs/engine/events/DSSIConfigureEvent.cpp
+++ b/src/libs/engine/events/DSSIConfigureEvent.cpp
@@ -15,7 +15,7 @@
*/
#include "DSSIConfigureEvent.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Node.h"
#include "ClientBroadcaster.h"
#include "Plugin.h"
@@ -37,7 +37,7 @@ DSSIConfigureEvent::DSSIConfigureEvent(CountedPtr<Responder> responder, SampleCo
void
DSSIConfigureEvent::pre_process()
{
- Node* node = Ingen::instance().object_store()->find_node(m_node_path);
+ Node* node = Engine::instance().object_store()->find_node(m_node_path);
if (node != NULL && node->plugin()->type() == Plugin::DSSI) {
m_node = (DSSINode*)node;
@@ -63,7 +63,7 @@ DSSIConfigureEvent::post_process()
} else {
string key = "dssi-configure--";
key += m_key;
- Ingen::instance().client_broadcaster()->send_metadata_update(m_node_path, key, m_val);
+ Engine::instance().client_broadcaster()->send_metadata_update(m_node_path, key, m_val);
}
}
diff --git a/src/libs/engine/events/DSSIControlEvent.cpp b/src/libs/engine/events/DSSIControlEvent.cpp
index 565e37da..5ba8a87e 100644
--- a/src/libs/engine/events/DSSIControlEvent.cpp
+++ b/src/libs/engine/events/DSSIControlEvent.cpp
@@ -15,7 +15,7 @@
*/
#include "DSSIControlEvent.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Node.h"
#include "Plugin.h"
#include "ObjectStore.h"
@@ -36,7 +36,7 @@ DSSIControlEvent::DSSIControlEvent(CountedPtr<Responder> responder, SampleCount
void
DSSIControlEvent::pre_process()
{
- Node* node = Ingen::instance().object_store()->find_node(m_node_path);
+ Node* node = Engine::instance().object_store()->find_node(m_node_path);
if (node->plugin()->type() != Plugin::DSSI)
m_node = NULL;
diff --git a/src/libs/engine/events/DSSIProgramEvent.cpp b/src/libs/engine/events/DSSIProgramEvent.cpp
index a3ee39d1..3d62e5b8 100644
--- a/src/libs/engine/events/DSSIProgramEvent.cpp
+++ b/src/libs/engine/events/DSSIProgramEvent.cpp
@@ -17,7 +17,7 @@
#include "DSSIProgramEvent.h"
#include <cstdio>
#include <iostream>
-#include "Ingen.h"
+#include "Engine.h"
#include "Node.h"
#include "ClientBroadcaster.h"
#include "Plugin.h"
@@ -41,7 +41,7 @@ DSSIProgramEvent::DSSIProgramEvent(CountedPtr<Responder> responder, SampleCount
void
DSSIProgramEvent::pre_process()
{
- Node* node = Ingen::instance().object_store()->find_node(m_node_path);
+ Node* node = Engine::instance().object_store()->find_node(m_node_path);
if (node != NULL && node->plugin()->type() == Plugin::DSSI)
m_node = (DSSINode*)node;
@@ -67,7 +67,7 @@ DSSIProgramEvent::post_process()
// sends program as metadata in the form bank/program
char* temp_buf = new char[16];
snprintf(temp_buf, 16, "%d/%d", m_bank, m_program);
- Ingen::instance().client_broadcaster()->send_metadata_update(m_node_path, "dssi-program", temp_buf);
+ Engine::instance().client_broadcaster()->send_metadata_update(m_node_path, "dssi-program", temp_buf);
}
}
diff --git a/src/libs/engine/events/DSSIUpdateEvent.cpp b/src/libs/engine/events/DSSIUpdateEvent.cpp
index f5628b86..48590917 100644
--- a/src/libs/engine/events/DSSIUpdateEvent.cpp
+++ b/src/libs/engine/events/DSSIUpdateEvent.cpp
@@ -18,7 +18,7 @@
#include <iostream>
#include "Node.h"
#include "ObjectStore.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "DSSINode.h"
#include "Plugin.h"
@@ -39,7 +39,7 @@ DSSIUpdateEvent::DSSIUpdateEvent(CountedPtr<Responder> responder, SampleCount ti
void
DSSIUpdateEvent::pre_process()
{
- Node* node = Ingen::instance().object_store()->find_node(m_path);
+ Node* node = Engine::instance().object_store()->find_node(m_path);
if (node == NULL || node->plugin()->type() != Plugin::DSSI) {
m_node = NULL;
diff --git a/src/libs/engine/events/DeactivateEvent.cpp b/src/libs/engine/events/DeactivateEvent.cpp
index 28648da3..e1c0541e 100644
--- a/src/libs/engine/events/DeactivateEvent.cpp
+++ b/src/libs/engine/events/DeactivateEvent.cpp
@@ -16,7 +16,7 @@
#include "DeactivateEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
namespace Ingen {
@@ -45,7 +45,7 @@ void
DeactivateEvent::post_process()
{
_responder->respond_ok();
- Ingen::instance().deactivate();
+ Engine::instance().deactivate();
}
diff --git a/src/libs/engine/events/DestroyEvent.cpp b/src/libs/engine/events/DestroyEvent.cpp
index d490bb6b..d373389b 100644
--- a/src/libs/engine/events/DestroyEvent.cpp
+++ b/src/libs/engine/events/DestroyEvent.cpp
@@ -16,7 +16,7 @@
#include "DestroyEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Patch.h"
#include "Tree.h"
#include "Node.h"
@@ -71,7 +71,7 @@ void
DestroyEvent::pre_process()
{
if (m_node == NULL)
- m_node = Ingen::instance().object_store()->find_node(m_path);
+ m_node = Engine::instance().object_store()->find_node(m_path);
if (m_node != NULL && m_path != "/") {
assert(m_node->parent_patch() != NULL);
@@ -129,7 +129,7 @@ DestroyEvent::execute(SampleCount offset)
m_parent_disconnect_event->execute(offset);
if (m_node->parent_patch()->process_order() != NULL)
- Ingen::instance().maid()->push(m_node->parent_patch()->process_order());
+ Engine::instance().maid()->push(m_node->parent_patch()->process_order());
m_node->parent_patch()->process_order(m_process_order);
}
}
@@ -153,9 +153,9 @@ DestroyEvent::post_process()
m_disconnect_event->post_process();
if (m_parent_disconnect_event != NULL)
m_parent_disconnect_event->post_process();
- Ingen::instance().client_broadcaster()->send_destroyed(m_path);
- Ingen::instance().maid()->push(m_patch_listnode);
- Ingen::instance().maid()->push(m_node);
+ Engine::instance().client_broadcaster()->send_destroyed(m_path);
+ Engine::instance().maid()->push(m_patch_listnode);
+ Engine::instance().maid()->push(m_node);
} else {
_responder->respond_error("Unable to destroy object");
}
diff --git a/src/libs/engine/events/DisablePatchEvent.cpp b/src/libs/engine/events/DisablePatchEvent.cpp
index 3129736f..45b19f54 100644
--- a/src/libs/engine/events/DisablePatchEvent.cpp
+++ b/src/libs/engine/events/DisablePatchEvent.cpp
@@ -16,7 +16,7 @@
#include "DisablePatchEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Patch.h"
#include "ClientBroadcaster.h"
#include "util.h"
@@ -37,7 +37,7 @@ DisablePatchEvent::DisablePatchEvent(CountedPtr<Responder> responder, SampleCoun
void
DisablePatchEvent::pre_process()
{
- m_patch = Ingen::instance().object_store()->find_patch(m_patch_path);
+ m_patch = Engine::instance().object_store()->find_patch(m_patch_path);
QueuedEvent::pre_process();
}
@@ -58,7 +58,7 @@ DisablePatchEvent::post_process()
{
if (m_patch != NULL) {
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_patch_disable(m_patch_path);
+ Engine::instance().client_broadcaster()->send_patch_disable(m_patch_path);
} else {
_responder->respond_error(string("Patch ") + m_patch_path + " not found");
}
diff --git a/src/libs/engine/events/DisconnectNodeEvent.cpp b/src/libs/engine/events/DisconnectNodeEvent.cpp
index e29e6956..7955f602 100644
--- a/src/libs/engine/events/DisconnectNodeEvent.cpp
+++ b/src/libs/engine/events/DisconnectNodeEvent.cpp
@@ -17,7 +17,7 @@
#include "DisconnectNodeEvent.h"
#include <iostream>
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Maid.h"
#include "List.h"
#include "Node.h"
@@ -77,7 +77,7 @@ DisconnectNodeEvent::pre_process()
// cerr << "Preparing disconnection event...\n";
if (m_lookup) {
- m_patch = Ingen::instance().object_store()->find_patch(m_node_path.parent());
+ m_patch = Engine::instance().object_store()->find_patch(m_node_path.parent());
if (m_patch == NULL) {
m_succeeded = false;
@@ -85,7 +85,7 @@ DisconnectNodeEvent::pre_process()
return;
}
- m_node = Ingen::instance().object_store()->find_node(m_node_path);
+ m_node = Engine::instance().object_store()->find_node(m_node_path);
if (m_node == NULL) {
m_succeeded = false;
diff --git a/src/libs/engine/events/DisconnectPortEvent.cpp b/src/libs/engine/events/DisconnectPortEvent.cpp
index 889e8506..2126dffd 100644
--- a/src/libs/engine/events/DisconnectPortEvent.cpp
+++ b/src/libs/engine/events/DisconnectPortEvent.cpp
@@ -17,7 +17,7 @@
#include "DisconnectPortEvent.h"
#include <iostream>
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Maid.h"
#include "List.h"
#include "Node.h"
@@ -76,7 +76,7 @@ DisconnectPortEvent::pre_process()
// cerr << "Preparing disconnection event...\n";
if (m_lookup) {
- m_patch = Ingen::instance().object_store()->find_patch(m_port_path.parent().parent());
+ m_patch = Engine::instance().object_store()->find_patch(m_port_path.parent().parent());
if (m_patch == NULL) {
m_succeeded = false;
@@ -84,7 +84,7 @@ DisconnectPortEvent::pre_process()
return;
}
- m_port = Ingen::instance().object_store()->find_port(m_port_path);
+ m_port = Engine::instance().object_store()->find_port(m_port_path);
if (m_port == NULL) {
m_succeeded = false;
diff --git a/src/libs/engine/events/DisconnectionEvent.cpp b/src/libs/engine/events/DisconnectionEvent.cpp
index 4afdf2c4..431061a2 100644
--- a/src/libs/engine/events/DisconnectionEvent.cpp
+++ b/src/libs/engine/events/DisconnectionEvent.cpp
@@ -17,7 +17,7 @@
#include "DisconnectionEvent.h"
#include <string>
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "TypedConnection.h"
#include "InputPort.h"
#include "OutputPort.h"
@@ -85,7 +85,7 @@ DisconnectionEvent::pre_process()
return;
}
- /*m_patch = Ingen::instance().object_store()->find_patch(m_src_port_path.parent().parent());
+ /*m_patch = Engine::instance().object_store()->find_patch(m_src_port_path.parent().parent());
if (m_patch == NULL) {
m_error = PORT_NOT_FOUND;
@@ -93,8 +93,8 @@ DisconnectionEvent::pre_process()
return;
}*/
- m_src_port = Ingen::instance().object_store()->find_port(m_src_port_path);
- m_dst_port = Ingen::instance().object_store()->find_port(m_dst_port_path);
+ m_src_port = Engine::instance().object_store()->find_port(m_src_port_path);
+ m_dst_port = Engine::instance().object_store()->find_port(m_dst_port_path);
}
if (m_src_port == NULL || m_dst_port == NULL) {
@@ -248,12 +248,12 @@ TypedDisconnectionEvent<T>::execute(SampleCount offset)
assert((Connection*)port_connection->elem() == patch_connection->elem());
// Clean up both the list node and the connection itself...
- Ingen::instance().maid()->push(port_connection);
- Ingen::instance().maid()->push(patch_connection);
- Ingen::instance().maid()->push(port_connection->elem());
+ Engine::instance().maid()->push(port_connection);
+ Engine::instance().maid()->push(patch_connection);
+ Engine::instance().maid()->push(port_connection->elem());
if (m_patch->process_order() != NULL)
- Ingen::instance().maid()->push(m_patch->process_order());
+ Engine::instance().maid()->push(m_patch->process_order());
m_patch->process_order(m_process_order);
} else {
m_succeeded = false; // Ports weren't connected
@@ -271,7 +271,7 @@ TypedDisconnectionEvent<T>::post_process()
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_disconnection(m_src_port->path(), m_dst_port->path());
+ Engine::instance().client_broadcaster()->send_disconnection(m_src_port->path(), m_dst_port->path());
} else {
_responder->respond_error("Unable to disconnect ports.");
}
diff --git a/src/libs/engine/events/EnablePatchEvent.cpp b/src/libs/engine/events/EnablePatchEvent.cpp
index e24c2fe1..b2b3ee08 100644
--- a/src/libs/engine/events/EnablePatchEvent.cpp
+++ b/src/libs/engine/events/EnablePatchEvent.cpp
@@ -16,7 +16,7 @@
#include "EnablePatchEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "Patch.h"
#include "util.h"
#include "ClientBroadcaster.h"
@@ -37,7 +37,7 @@ EnablePatchEvent::EnablePatchEvent(CountedPtr<Responder> responder, SampleCount
void
EnablePatchEvent::pre_process()
{
- m_patch = Ingen::instance().object_store()->find_patch(m_patch_path);
+ m_patch = Engine::instance().object_store()->find_patch(m_patch_path);
if (m_patch != NULL) {
/* Any event that requires a new process order will set the patch's
@@ -70,7 +70,7 @@ EnablePatchEvent::post_process()
{
if (m_patch != NULL) {
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_patch_enable(m_patch_path);
+ Engine::instance().client_broadcaster()->send_patch_enable(m_patch_path);
} else {
_responder->respond_error(string("Patch ") + m_patch_path + " not found");
}
diff --git a/src/libs/engine/events/LoadPluginsEvent.cpp b/src/libs/engine/events/LoadPluginsEvent.cpp
index 65972c17..cae25733 100644
--- a/src/libs/engine/events/LoadPluginsEvent.cpp
+++ b/src/libs/engine/events/LoadPluginsEvent.cpp
@@ -16,7 +16,7 @@
#include "LoadPluginsEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "NodeFactory.h"
#include <iostream>
@@ -29,7 +29,7 @@ LoadPluginsEvent::LoadPluginsEvent(CountedPtr<Responder> responder, SampleCount
: QueuedEvent(responder, timestamp)
{
cerr << "LOADING PLUGINS\n";
- Ingen::instance().node_factory()->load_plugins();
+ Engine::instance().node_factory()->load_plugins();
}
diff --git a/src/libs/engine/events/MidiLearnEvent.cpp b/src/libs/engine/events/MidiLearnEvent.cpp
index 5349ba92..814ecdb5 100644
--- a/src/libs/engine/events/MidiLearnEvent.cpp
+++ b/src/libs/engine/events/MidiLearnEvent.cpp
@@ -16,7 +16,7 @@
#include "MidiLearnEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ObjectStore.h"
#include "Node.h"
#include "MidiControlNode.h"
@@ -30,7 +30,7 @@ namespace Ingen {
void
MidiLearnResponseEvent::post_process()
{
- Ingen::instance().client_broadcaster()->send_control_change(m_port_path, m_value);
+ Engine::instance().client_broadcaster()->send_control_change(m_port_path, m_value);
}
@@ -49,7 +49,7 @@ MidiLearnEvent::MidiLearnEvent(CountedPtr<Responder> responder, SampleCount time
void
MidiLearnEvent::pre_process()
{
- m_node = Ingen::instance().object_store()->find_node(m_node_path);
+ m_node = Engine::instance().object_store()->find_node(m_node_path);
m_response_event = new MidiLearnResponseEvent(m_node_path + "/Controller_Number", _time_stamp);
QueuedEvent::pre_process();
diff --git a/src/libs/engine/events/NoteOffEvent.cpp b/src/libs/engine/events/NoteOffEvent.cpp
index 36078e7c..027e9f1f 100644
--- a/src/libs/engine/events/NoteOffEvent.cpp
+++ b/src/libs/engine/events/NoteOffEvent.cpp
@@ -16,7 +16,7 @@
#include "NoteOffEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ObjectStore.h"
#include "Node.h"
#include "MidiNoteNode.h"
@@ -50,7 +50,7 @@ void
NoteOffEvent::execute(SampleCount offset)
{
if (m_node == NULL && m_node_path != "")
- m_node = Ingen::instance().object_store()->find_node(m_node_path);
+ m_node = Engine::instance().object_store()->find_node(m_node_path);
// FIXME: this isn't very good at all.
if (m_node != NULL && m_node->plugin()->type() == Plugin::Internal) {
diff --git a/src/libs/engine/events/NoteOnEvent.cpp b/src/libs/engine/events/NoteOnEvent.cpp
index 90711619..cbbc0e1d 100644
--- a/src/libs/engine/events/NoteOnEvent.cpp
+++ b/src/libs/engine/events/NoteOnEvent.cpp
@@ -16,7 +16,7 @@
#include "NoteOnEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ObjectStore.h"
#include "Node.h"
#include "MidiNoteNode.h"
@@ -60,7 +60,7 @@ NoteOnEvent::execute(SampleCount offset)
{
// Lookup if neccessary
if (m_is_osc_triggered)
- m_node = Ingen::instance().object_store()->find_node(m_node_path);
+ m_node = Engine::instance().object_store()->find_node(m_node_path);
// FIXME: this isn't very good at all.
if (m_node != NULL && m_node->plugin()->type() == Plugin::Internal) {
diff --git a/src/libs/engine/events/RegisterClientEvent.cpp b/src/libs/engine/events/RegisterClientEvent.cpp
index bbec1ba9..ab076059 100644
--- a/src/libs/engine/events/RegisterClientEvent.cpp
+++ b/src/libs/engine/events/RegisterClientEvent.cpp
@@ -16,7 +16,7 @@
#include "RegisterClientEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ClientBroadcaster.h"
namespace Ingen {
@@ -36,7 +36,7 @@ RegisterClientEvent::RegisterClientEvent(CountedPtr<Responder> responder,
void
RegisterClientEvent::pre_process()
{
- Ingen::instance().client_broadcaster()->register_client(_key, _client);
+ Engine::instance().client_broadcaster()->register_client(_key, _client);
QueuedEvent::pre_process();
}
diff --git a/src/libs/engine/events/RenameEvent.cpp b/src/libs/engine/events/RenameEvent.cpp
index 0d77dfa4..25a54285 100644
--- a/src/libs/engine/events/RenameEvent.cpp
+++ b/src/libs/engine/events/RenameEvent.cpp
@@ -19,7 +19,7 @@
#include "Patch.h"
#include "Node.h"
#include "Tree.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ClientBroadcaster.h"
#include "util/Path.h"
#include "ObjectStore.h"
@@ -58,13 +58,13 @@ RenameEvent::pre_process()
return;
}
- if (Ingen::instance().object_store()->find(m_new_path)) {
+ if (Engine::instance().object_store()->find(m_new_path)) {
m_error = OBJECT_EXISTS;
QueuedEvent::pre_process();
return;
}
- GraphObject* obj = Ingen::instance().object_store()->find(m_old_path);
+ GraphObject* obj = Engine::instance().object_store()->find(m_old_path);
if (obj == NULL) {
m_error = OBJECT_NOT_FOUND;
@@ -103,7 +103,7 @@ RenameEvent::post_process()
if (m_error == NO_ERROR) {
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_rename(m_old_path, m_new_path);
+ Engine::instance().client_broadcaster()->send_rename(m_old_path, m_new_path);
} else {
if (m_error == OBJECT_EXISTS)
msg.append("Object already exists at ").append(m_new_path);
diff --git a/src/libs/engine/events/RequestAllObjectsEvent.cpp b/src/libs/engine/events/RequestAllObjectsEvent.cpp
index 62a665b7..b28294cc 100644
--- a/src/libs/engine/events/RequestAllObjectsEvent.cpp
+++ b/src/libs/engine/events/RequestAllObjectsEvent.cpp
@@ -16,7 +16,7 @@
#include "RequestAllObjectsEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ObjectSender.h"
namespace Ingen {
diff --git a/src/libs/engine/events/RequestMetadataEvent.cpp b/src/libs/engine/events/RequestMetadataEvent.cpp
index 2f41bc35..e8112797 100644
--- a/src/libs/engine/events/RequestMetadataEvent.cpp
+++ b/src/libs/engine/events/RequestMetadataEvent.cpp
@@ -17,7 +17,7 @@
#include "RequestMetadataEvent.h"
#include <string>
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "GraphObject.h"
#include "ObjectStore.h"
#include "interface/ClientInterface.h"
@@ -44,7 +44,7 @@ RequestMetadataEvent::pre_process()
m_client = _responder->find_client();
if (m_client) {
- m_object = Ingen::instance().object_store()->find(m_path);
+ m_object = Engine::instance().object_store()->find(m_path);
if (m_object == NULL) {
QueuedEvent::pre_process();
return;
diff --git a/src/libs/engine/events/RequestPluginsEvent.cpp b/src/libs/engine/events/RequestPluginsEvent.cpp
index fff549b8..65dfb7aa 100644
--- a/src/libs/engine/events/RequestPluginsEvent.cpp
+++ b/src/libs/engine/events/RequestPluginsEvent.cpp
@@ -16,7 +16,7 @@
#include "RequestPluginsEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ClientBroadcaster.h"
namespace Ingen {
@@ -42,7 +42,7 @@ void
RequestPluginsEvent::post_process()
{
if (m_client) {
- Ingen::instance().client_broadcaster()->send_plugins_to(m_client.get());
+ Engine::instance().client_broadcaster()->send_plugins_to(m_client.get());
_responder->respond_ok();
} else {
_responder->respond_error("Invalid URL");
diff --git a/src/libs/engine/events/RequestPortValueEvent.cpp b/src/libs/engine/events/RequestPortValueEvent.cpp
index e6384875..d02eed6a 100644
--- a/src/libs/engine/events/RequestPortValueEvent.cpp
+++ b/src/libs/engine/events/RequestPortValueEvent.cpp
@@ -17,7 +17,7 @@
#include "RequestPortValueEvent.h"
#include <string>
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "interface/ClientInterface.h"
#include "TypedPort.h"
#include "ObjectStore.h"
@@ -42,7 +42,7 @@ void
RequestPortValueEvent::pre_process()
{
m_client = _responder->find_client();
- m_port = Ingen::instance().object_store()->find_port(m_port_path);
+ m_port = Engine::instance().object_store()->find_port(m_port_path);
QueuedEvent::pre_process();
}
diff --git a/src/libs/engine/events/SetMetadataEvent.cpp b/src/libs/engine/events/SetMetadataEvent.cpp
index 9ce03bc9..3d77b77b 100644
--- a/src/libs/engine/events/SetMetadataEvent.cpp
+++ b/src/libs/engine/events/SetMetadataEvent.cpp
@@ -17,7 +17,7 @@
#include "SetMetadataEvent.h"
#include <string>
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ClientBroadcaster.h"
#include "GraphObject.h"
#include "ObjectStore.h"
@@ -40,7 +40,7 @@ SetMetadataEvent::SetMetadataEvent(CountedPtr<Responder> responder, SampleCount
void
SetMetadataEvent::pre_process()
{
- m_object = Ingen::instance().object_store()->find(m_path);
+ m_object = Engine::instance().object_store()->find(m_path);
if (m_object == NULL) {
QueuedEvent::pre_process();
return;
@@ -70,7 +70,7 @@ SetMetadataEvent::post_process()
_responder->respond_error(msg);
} else {
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_metadata_update(m_path, m_key, m_value);
+ Engine::instance().client_broadcaster()->send_metadata_update(m_path, m_key, m_value);
}
}
diff --git a/src/libs/engine/events/SetPortValueEvent.cpp b/src/libs/engine/events/SetPortValueEvent.cpp
index 58bb815b..6331a4b5 100644
--- a/src/libs/engine/events/SetPortValueEvent.cpp
+++ b/src/libs/engine/events/SetPortValueEvent.cpp
@@ -16,7 +16,7 @@
#include "SetPortValueEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "TypedPort.h"
#include "ClientBroadcaster.h"
#include "Node.h"
@@ -53,7 +53,7 @@ void
SetPortValueEvent::execute(SampleCount offset)
{
if (m_port == NULL)
- m_port = Ingen::instance().object_store()->find_port(m_port_path);
+ m_port = Engine::instance().object_store()->find_port(m_port_path);
if (m_port == NULL) {
m_error = PORT_NOT_FOUND;
@@ -76,13 +76,13 @@ SetPortValueEvent::post_process()
assert(m_port != NULL);
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_control_change(m_port_path, m_val);
+ Engine::instance().client_broadcaster()->send_control_change(m_port_path, m_val);
// Send patch port control change, if this is a bridge port
/*Port* parent_port = m_port->parent_node()->as_port();
if (parent_port != NULL) {
assert(parent_port->type() == DataType::FLOAT);
- Ingen::instance().client_broadcaster()->send_control_change(parent_port->path(), m_val);
+ Engine::instance().client_broadcaster()->send_control_change(parent_port->path(), m_val);
}*/
} else if (m_error == PORT_NOT_FOUND) {
diff --git a/src/libs/engine/events/SetPortValueQueuedEvent.cpp b/src/libs/engine/events/SetPortValueQueuedEvent.cpp
index bb17c44e..8a5afc65 100644
--- a/src/libs/engine/events/SetPortValueQueuedEvent.cpp
+++ b/src/libs/engine/events/SetPortValueQueuedEvent.cpp
@@ -16,7 +16,7 @@
#include "SetPortValueQueuedEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "TypedPort.h"
#include "ClientBroadcaster.h"
#include "Plugin.h"
@@ -54,7 +54,7 @@ void
SetPortValueQueuedEvent::pre_process()
{
if (m_port == NULL)
- m_port = Ingen::instance().object_store()->find_port(m_port_path);
+ m_port = Engine::instance().object_store()->find_port(m_port_path);
if (m_port == NULL) {
m_error = PORT_NOT_FOUND;
@@ -88,13 +88,13 @@ SetPortValueQueuedEvent::post_process()
assert(m_port != NULL);
_responder->respond_ok();
- Ingen::instance().client_broadcaster()->send_control_change(m_port_path, m_val);
+ Engine::instance().client_broadcaster()->send_control_change(m_port_path, m_val);
// Send patch port control change, if this is a bridge port
/*Port* parent_port = m_port->parent_node()->as_port();
if (parent_port != NULL) {
assert(parent_port->type() == DataType::FLOAT);
- Ingen::instance().client_broadcaster()->send_control_change(parent_port->path(), m_val);
+ Engine::instance().client_broadcaster()->send_control_change(parent_port->path(), m_val);
}*/
} else if (m_error == PORT_NOT_FOUND) {
diff --git a/src/libs/engine/events/UnregisterClientEvent.cpp b/src/libs/engine/events/UnregisterClientEvent.cpp
index 0ec3c467..5e720a24 100644
--- a/src/libs/engine/events/UnregisterClientEvent.cpp
+++ b/src/libs/engine/events/UnregisterClientEvent.cpp
@@ -16,7 +16,7 @@
#include "UnregisterClientEvent.h"
#include "Responder.h"
-#include "Ingen.h"
+#include "Engine.h"
#include "ClientBroadcaster.h"
#include "interface/ClientInterface.h"
@@ -33,7 +33,7 @@ UnregisterClientEvent::UnregisterClientEvent(CountedPtr<Responder> responder, Sa
void
UnregisterClientEvent::post_process()
{
- if (Ingen::instance().client_broadcaster()->unregister_client(_key))
+ if (Engine::instance().client_broadcaster()->unregister_client(_key))
_responder->respond_ok();
else
_responder->respond_error("Unable to unregister client");