summaryrefslogtreecommitdiffstats
path: root/src/server/events/Connect.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-21 20:41:08 +0000
committerDavid Robillard <d@drobilla.net>2011-10-21 20:41:08 +0000
commit4ce6781bd6727fca68d4c99337f47a75d849e5ab (patch)
tree8b7fe459778b0a0e7452e3b593c8c77cdcf3d191 /src/server/events/Connect.cpp
parent6e416be77892b960bb429cab11cd4effce0033e1 (diff)
downloadingen-4ce6781bd6727fca68d4c99337f47a75d849e5ab.tar.gz
ingen-4ce6781bd6727fca68d4c99337f47a75d849e5ab.tar.bz2
ingen-4ce6781bd6727fca68d4c99337f47a75d849e5ab.zip
Merge QueuedEvent into Event.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3569 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events/Connect.cpp')
-rw-r--r--src/server/events/Connect.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/server/events/Connect.cpp b/src/server/events/Connect.cpp
index 551b3a29..c8858961 100644
--- a/src/server/events/Connect.cpp
+++ b/src/server/events/Connect.cpp
@@ -49,7 +49,7 @@ Connect::Connect(Engine& engine,
SampleCount timestamp,
const Path& src_port_path,
const Path& dst_port_path)
- : QueuedEvent(engine, request, timestamp)
+ : Event(engine, request, timestamp)
, _src_port_path(src_port_path)
, _dst_port_path(dst_port_path)
, _patch(NULL)
@@ -68,7 +68,7 @@ Connect::pre_process()
PortImpl* dst_port = _engine.engine_store()->find_port(_dst_port_path);
if (!src_port || !dst_port) {
_error = PORT_NOT_FOUND;
- QueuedEvent::pre_process();
+ Event::pre_process();
return;
}
@@ -76,7 +76,7 @@ Connect::pre_process()
_src_output_port = dynamic_cast<OutputPort*>(src_port);
if (!_dst_input_port || !_src_output_port) {
_error = DIRECTION_MISMATCH;
- QueuedEvent::pre_process();
+ Event::pre_process();
return;
}
@@ -84,7 +84,7 @@ Connect::pre_process()
NodeImpl* const dst_node = dst_port->parent_node();
if (!src_node || !dst_node) {
_error = PARENTS_NOT_FOUND;
- QueuedEvent::pre_process();
+ Event::pre_process();
return;
}
@@ -92,13 +92,13 @@ Connect::pre_process()
&& src_node != dst_node->parent()
&& src_node->parent() != dst_node) {
_error = PARENT_PATCH_DIFFERENT;
- QueuedEvent::pre_process();
+ Event::pre_process();
return;
}
if (!ConnectionImpl::can_connect(_src_output_port, _dst_input_port)) {
_error = TYPE_MISMATCH;
- QueuedEvent::pre_process();
+ Event::pre_process();
return;
}
@@ -121,7 +121,7 @@ Connect::pre_process()
if (_patch->has_connection(_src_output_port, _dst_input_port)) {
_error = ALREADY_CONNECTED;
- QueuedEvent::pre_process();
+ Event::pre_process();
return;
}
@@ -153,13 +153,13 @@ Connect::pre_process()
if (_patch->enabled())
_compiled_patch = _patch->compile();
- QueuedEvent::pre_process();
+ Event::pre_process();
}
void
Connect::execute(ProcessContext& context)
{
- QueuedEvent::execute(context);
+ Event::execute(context);
if (_error == NO_ERROR) {
// This must be inserted here, since they're actually used by the audio thread