summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-07 19:59:13 +0000
committerDavid Robillard <d@drobilla.net>2007-10-07 19:59:13 +0000
commitb1406a0e09b0cb27032ade94c58d9a471086b89a (patch)
tree783b407f0f9ce4504369849ea128375a447dec57 /src/libs/engine/events
parent23683a3e4f03dd8f7cdb1dc1a1592fdaa9d18b23 (diff)
downloadingen-b1406a0e09b0cb27032ade94c58d9a471086b89a.tar.gz
ingen-b1406a0e09b0cb27032ade94c58d9a471086b89a.tar.bz2
ingen-b1406a0e09b0cb27032ade94c58d9a471086b89a.zip
Remove DSSI.
git-svn-id: http://svn.drobilla.net/lad/ingen@838 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r--src/libs/engine/events/DSSIConfigureEvent.cpp76
-rw-r--r--src/libs/engine/events/DSSIConfigureEvent.hpp50
-rw-r--r--src/libs/engine/events/DSSIControlEvent.cpp70
-rw-r--r--src/libs/engine/events/DSSIControlEvent.hpp52
-rw-r--r--src/libs/engine/events/DSSIProgramEvent.cpp79
-rw-r--r--src/libs/engine/events/DSSIProgramEvent.hpp50
-rw-r--r--src/libs/engine/events/DSSIUpdateEvent.cpp80
-rw-r--r--src/libs/engine/events/DSSIUpdateEvent.hpp55
-rw-r--r--src/libs/engine/events/Makefile.am8
9 files changed, 0 insertions, 520 deletions
diff --git a/src/libs/engine/events/DSSIConfigureEvent.cpp b/src/libs/engine/events/DSSIConfigureEvent.cpp
deleted file mode 100644
index 25c9ab31..00000000
--- a/src/libs/engine/events/DSSIConfigureEvent.cpp
+++ /dev/null
@@ -1,76 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "DSSIConfigureEvent.hpp"
-#include "Engine.hpp"
-#include "NodeImpl.hpp"
-#include "ClientBroadcaster.hpp"
-#include "PluginImpl.hpp"
-#include "ObjectStore.hpp"
-
-using namespace std;
-
-namespace Ingen {
-
-
-DSSIConfigureEvent::DSSIConfigureEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& node_path, const string& key, const string& val)
-: QueuedEvent(engine, responder, timestamp),
- _node_path(node_path),
- _key(key),
- _val(val),
- _node(NULL)
-{
-}
-
-
-void
-DSSIConfigureEvent::pre_process()
-{
- NodeImpl* node = _engine.object_store()->find_node(_node_path);
-
- if (node != NULL && node->plugin()->type() == Plugin::DSSI) {
- _node = (DSSINode*)node;
- _node->configure(_key, _val);
- }
-
- QueuedEvent::pre_process();
-}
-
-
-void
-DSSIConfigureEvent::execute(ProcessContext& context)
-{
- QueuedEvent::execute(context);
- // Nothing.
-}
-
-
-void
-DSSIConfigureEvent::post_process()
-{
- if (_node == NULL) {
- cerr << "Unable to find DSSI node " << _node_path << endl;
- } else {
- string key = "dssi-configure--";
- key += _key;
- _engine.broadcaster()->send_metadata_update(_node_path, key, Atom(_val.c_str()));
- }
-}
-
-
-} // namespace Ingen
-
diff --git a/src/libs/engine/events/DSSIConfigureEvent.hpp b/src/libs/engine/events/DSSIConfigureEvent.hpp
deleted file mode 100644
index 5960daf9..00000000
--- a/src/libs/engine/events/DSSIConfigureEvent.hpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef DSSICONFIGUREEVENT_H
-#define DSSICONFIGUREEVENT_H
-
-#include "QueuedEvent.hpp"
-#include "DSSINode.hpp"
-
-namespace Ingen {
-
-
-/** Change of a 'configure' key/value pair for a DSSI plugin.
- *
- * \ingroup engine
- */
-class DSSIConfigureEvent : public QueuedEvent
-{
-public:
- DSSIConfigureEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& node_path, const string& key, const string& val);
-
- void pre_process();
- void execute(ProcessContext& context);
- void post_process();
-
-private:
- string _node_path;
- string _key;
- string _val;
- DSSINode* _node;
-};
-
-
-} // namespace Ingen
-
-#endif // DSSICONFIGUREEVENT_H
diff --git a/src/libs/engine/events/DSSIControlEvent.cpp b/src/libs/engine/events/DSSIControlEvent.cpp
deleted file mode 100644
index 70c7dc99..00000000
--- a/src/libs/engine/events/DSSIControlEvent.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "DSSIControlEvent.hpp"
-#include "Engine.hpp"
-#include "NodeImpl.hpp"
-#include "PluginImpl.hpp"
-#include "ObjectStore.hpp"
-
-namespace Ingen {
-
-
-DSSIControlEvent::DSSIControlEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& node_path, int port_num, Sample val)
-: QueuedEvent(engine, responder, timestamp),
- _node_path(node_path),
- _port_num(port_num),
- _val(val),
- _node(NULL)
-{
-}
-
-
-void
-DSSIControlEvent::pre_process()
-{
- NodeImpl* node = _engine.object_store()->find_node(_node_path);
-
- if (node->plugin()->type() != Plugin::DSSI)
- _node = NULL;
- else
- _node = (DSSINode*)node;
-
- QueuedEvent::pre_process();
-}
-
-
-void
-DSSIControlEvent::execute(ProcessContext& context)
-{
- QueuedEvent::execute(context);
-
- if (_node != NULL)
- _node->set_control(_port_num, _val);
-}
-
-
-void
-DSSIControlEvent::post_process()
-{
- if (_node == NULL)
- std::cerr << "Unable to find DSSI node " << _node_path << std::endl;
-}
-
-
-} // namespace Ingen
-
diff --git a/src/libs/engine/events/DSSIControlEvent.hpp b/src/libs/engine/events/DSSIControlEvent.hpp
deleted file mode 100644
index 56fd05cf..00000000
--- a/src/libs/engine/events/DSSIControlEvent.hpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef DSSICONTROLEVENT_H
-#define DSSICONTROLEVENT_H
-
-#include "QueuedEvent.hpp"
-#include "DSSINode.hpp"
-
-namespace Ingen {
-
-
-/** A control change event for a DSSI plugin.
- *
- * This does essentially the same thing as a SetPortValueEvent.
- *
- * \ingroup engine
- */
-class DSSIControlEvent : public QueuedEvent
-{
-public:
- DSSIControlEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& node_path, int port_num, Sample val);
-
- void pre_process();
- void execute(ProcessContext& context);
- void post_process();
-
-private:
- string _node_path;
- int _port_num;
- float _val;
- DSSINode* _node;
-};
-
-
-} // namespace Ingen
-
-#endif // DSSICONTROLEVENT_H
diff --git a/src/libs/engine/events/DSSIProgramEvent.cpp b/src/libs/engine/events/DSSIProgramEvent.cpp
deleted file mode 100644
index 94cd20dc..00000000
--- a/src/libs/engine/events/DSSIProgramEvent.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "DSSIProgramEvent.hpp"
-#include <cstdio>
-#include <iostream>
-#include "Engine.hpp"
-#include "NodeImpl.hpp"
-#include "ClientBroadcaster.hpp"
-#include "PluginImpl.hpp"
-#include "ObjectStore.hpp"
-using std::cout; using std::cerr; using std::endl;
-
-
-namespace Ingen {
-
-
-DSSIProgramEvent::DSSIProgramEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& node_path, int bank, int program)
-: QueuedEvent(engine, responder, timestamp),
- _node_path(node_path),
- _bank(bank),
- _program(program),
- _node(NULL)
-{
-}
-
-
-void
-DSSIProgramEvent::pre_process()
-{
- NodeImpl* node = _engine.object_store()->find_node(_node_path);
-
- if (node != NULL && node->plugin()->type() == Plugin::DSSI)
- _node = (DSSINode*)node;
-
- QueuedEvent::pre_process();
-}
-
-
-void
-DSSIProgramEvent::execute(ProcessContext& context)
-{
- QueuedEvent::execute(context);
-
- if (_node != NULL)
- _node->program(_bank, _program);
-}
-
-
-void
-DSSIProgramEvent::post_process()
-{
- if (_node == NULL) {
- cerr << "Unable to find DSSI node " << _node_path << endl;
- } else {
- // sends program as metadata in the form bank/program
- char* temp_buf = new char[16];
- snprintf(temp_buf, 16, "%d/%d", _bank, _program);
- _engine.broadcaster()->send_metadata_update(_node_path, "dssi-program", temp_buf);
- }
-}
-
-
-} // namespace Ingen
-
diff --git a/src/libs/engine/events/DSSIProgramEvent.hpp b/src/libs/engine/events/DSSIProgramEvent.hpp
deleted file mode 100644
index b66dcb87..00000000
--- a/src/libs/engine/events/DSSIProgramEvent.hpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef DSSIPROGRAMEVENT_H
-#define DSSIPROGRAMEVENT_H
-
-#include "QueuedEvent.hpp"
-#include "DSSINode.hpp"
-
-namespace Ingen {
-
-
-/** A program change for a DSSI plugin.
- *
- * \ingroup engine
- */
-class DSSIProgramEvent : public QueuedEvent
-{
-public:
- DSSIProgramEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& node_path, int bank, int program);
-
- void pre_process();
- void execute(ProcessContext& context);
- void post_process();
-
-private:
- string _node_path;
- int _bank;
- int _program;
- DSSINode* _node;
-};
-
-
-} // namespace Ingen
-
-#endif // DSSIPROGRAMEVENT_H
diff --git a/src/libs/engine/events/DSSIUpdateEvent.cpp b/src/libs/engine/events/DSSIUpdateEvent.cpp
deleted file mode 100644
index 8f2eea6a..00000000
--- a/src/libs/engine/events/DSSIUpdateEvent.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "DSSIUpdateEvent.hpp"
-#include <iostream>
-#include "NodeImpl.hpp"
-#include "ObjectStore.hpp"
-#include "Engine.hpp"
-#include "DSSINode.hpp"
-#include "PluginImpl.hpp"
-
-using std::cerr; using std::endl;
-
-namespace Ingen {
-
-
-DSSIUpdateEvent::DSSIUpdateEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& path, const string& url)
-: QueuedEvent(engine, responder, timestamp),
- _path(path),
- _url(url),
- _node(NULL)
-{
-}
-
-
-void
-DSSIUpdateEvent::pre_process()
-{
- NodeImpl* node = _engine.object_store()->find_node(_path);
-
- if (node == NULL || node->plugin()->type() != Plugin::DSSI) {
- _node = NULL;
- QueuedEvent::pre_process();
- return;
- } else {
- _node = (DSSINode*)node;
- }
-
- QueuedEvent::pre_process();
-}
-
-
-void
-DSSIUpdateEvent::execute(ProcessContext& context)
-{
- QueuedEvent::execute(context);
-
- if (_node != NULL) {
- _node->set_ui_url(_url);
- }
-}
-
-
-void
-DSSIUpdateEvent::post_process()
-{
- cerr << "DSSI update event: " << _url << endl;
-
- if (_node != NULL) {
- _node->send_update();
- }
-}
-
-
-} // namespace Ingen
-
diff --git a/src/libs/engine/events/DSSIUpdateEvent.hpp b/src/libs/engine/events/DSSIUpdateEvent.hpp
deleted file mode 100644
index 16a2b50a..00000000
--- a/src/libs/engine/events/DSSIUpdateEvent.hpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef DSSIUPDATEEVENT_H
-#define DSSIUPDATEEVENT_H
-
-#include "QueuedEvent.hpp"
-#include <string>
-
-using std::string;
-
-namespace Ingen {
-
-class DSSINode;
-
-
-/** A DSSI "update" responder for a DSSI plugin/node.
- *
- * This sends all information about the plugin to the UI (over OSC).
- *
- * \ingroup engine
- */
-class DSSIUpdateEvent : public QueuedEvent
-{
-public:
- DSSIUpdateEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const string& path, const string& url);
-
- void pre_process();
- void execute(ProcessContext& context);
- void post_process();
-
-private:
- string _path;
- string _url;
- DSSINode* _node;
-};
-
-
-} // namespace Ingen
-
-#endif // DSSIUPDATEEVENT_H
diff --git a/src/libs/engine/events/Makefile.am b/src/libs/engine/events/Makefile.am
index 67ccf0e5..f437be2c 100644
--- a/src/libs/engine/events/Makefile.am
+++ b/src/libs/engine/events/Makefile.am
@@ -13,14 +13,6 @@ EXTRA_DIST = \
CreatePatchEvent.hpp \
CreatePortEvent.cpp \
CreatePortEvent.hpp \
- DSSIConfigureEvent.cpp \
- DSSIConfigureEvent.hpp \
- DSSIControlEvent.cpp \
- DSSIControlEvent.hpp \
- DSSIProgramEvent.cpp \
- DSSIProgramEvent.hpp \
- DSSIUpdateEvent.cpp \
- DSSIUpdateEvent.hpp \
DeactivateEvent.cpp \
DeactivateEvent.hpp \
DestroyEvent.cpp \