From b1406a0e09b0cb27032ade94c58d9a471086b89a Mon Sep 17 00:00:00 2001
From: David Robillard
Date: Sun, 7 Oct 2007 19:59:13 +0000
Subject: Remove DSSI.
git-svn-id: http://svn.drobilla.net/lad/ingen@838 a436a847-0d15-0410-975c-d299462d15a1
---
src/libs/engine/DSSINode.cpp | 361 --------------------------
src/libs/engine/DSSINode.hpp | 104 --------
src/libs/engine/LADSPANode.cpp | 1 -
src/libs/engine/Makefile.am | 14 -
src/libs/engine/NodeFactory.cpp | 176 -------------
src/libs/engine/NodeFactory.hpp | 5 -
src/libs/engine/OSCClientSender.cpp | 10 +-
src/libs/engine/OSCEngineReceiver.cpp | 44 ----
src/libs/engine/OSCEngineReceiver.hpp | 4 -
src/libs/engine/PluginImpl.hpp | 12 +-
src/libs/engine/QueuedEngineInterface.cpp | 5 +-
src/libs/engine/events.hpp | 7 -
src/libs/engine/events/DSSIConfigureEvent.cpp | 76 ------
src/libs/engine/events/DSSIConfigureEvent.hpp | 50 ----
src/libs/engine/events/DSSIControlEvent.cpp | 70 -----
src/libs/engine/events/DSSIControlEvent.hpp | 52 ----
src/libs/engine/events/DSSIProgramEvent.cpp | 79 ------
src/libs/engine/events/DSSIProgramEvent.hpp | 50 ----
src/libs/engine/events/DSSIUpdateEvent.cpp | 80 ------
src/libs/engine/events/DSSIUpdateEvent.hpp | 55 ----
src/libs/engine/events/Makefile.am | 8 -
21 files changed, 12 insertions(+), 1251 deletions(-)
delete mode 100644 src/libs/engine/DSSINode.cpp
delete mode 100644 src/libs/engine/DSSINode.hpp
delete mode 100644 src/libs/engine/events/DSSIConfigureEvent.cpp
delete mode 100644 src/libs/engine/events/DSSIConfigureEvent.hpp
delete mode 100644 src/libs/engine/events/DSSIControlEvent.cpp
delete mode 100644 src/libs/engine/events/DSSIControlEvent.hpp
delete mode 100644 src/libs/engine/events/DSSIProgramEvent.cpp
delete mode 100644 src/libs/engine/events/DSSIProgramEvent.hpp
delete mode 100644 src/libs/engine/events/DSSIUpdateEvent.cpp
delete mode 100644 src/libs/engine/events/DSSIUpdateEvent.hpp
(limited to 'src/libs/engine')
diff --git a/src/libs/engine/DSSINode.cpp b/src/libs/engine/DSSINode.cpp
deleted file mode 100644
index 33f8b86c..00000000
--- a/src/libs/engine/DSSINode.cpp
+++ /dev/null
@@ -1,361 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard
- *
- * 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
\n \n
*/
void
OSCClientSender::polyphonic(const std::string& path,
@@ -472,8 +472,8 @@ OSCClientSender::port_activity(const std::string& port_path)
/** \page client_osc_namespace
* \b /ingen/plugin - Notification of the existance of a plugin
- * \arg \b type (string) - Type of plugin ("LADSPA", "DSSI", or "Internal")
- * \arg \b uri (string) - Type of plugin ("LADSPA", "DSSI", or "Internal")
+ * \arg \b type (string) - Type of plugin ("LADSPA", "LV2", or "Internal")
+ * \arg \b uri (string) - Type of plugin ("LADSPA", "LV2", or "Internal")
* \arg \b name (string) - Descriptive human-readable name of plugin (ie "ADSR Envelope")
*/
void
@@ -547,7 +547,7 @@ OSCClientSender::object_renamed(const std::string& old_path, const std::string&
}
-/** Sends information about a program associated with a DSSI plugin node.
+/** Sends information about a program associated with a node.
*/
void
OSCClientSender::program_add(const std::string& node_path, uint32_t bank, uint32_t program, const std::string& name)
diff --git a/src/libs/engine/OSCEngineReceiver.cpp b/src/libs/engine/OSCEngineReceiver.cpp
index 41437244..cfb3f860 100644
--- a/src/libs/engine/OSCEngineReceiver.cpp
+++ b/src/libs/engine/OSCEngineReceiver.cpp
@@ -116,13 +116,6 @@ OSCEngineReceiver::OSCEngineReceiver(Engine& engine, size_t queue_size, uint16_t
lo_server_add_method(_server, "/ingen/request_plugins", "i", request_plugins_cb, this);
lo_server_add_method(_server, "/ingen/request_all_objects", "i", request_all_objects_cb, this);
-
- // DSSI support
-#ifdef HAVE_DSSI
- // XXX WARNING: notice this is a catch-all
- lo_server_add_method(_server, NULL, NULL, dssi_cb, this);
-#endif
-
lo_server_add_method(_server, NULL, NULL, unknown_cb, NULL);
Thread::set_name("OSC Pre-Processor");
@@ -958,43 +951,6 @@ OSCEngineReceiver::_request_all_objects_cb(const char* path, const char* types,
}
-#ifdef HAVE_DSSI
-int
-OSCEngineReceiver::_dssi_cb(const char* path, const char* types, lo_arg** argv, int argc, lo_message msg)
-{
-#if 0
- string node_path(path);
-
- if (node_path.substr(0, 5) != "/dssi")
- return 1;
-
- string command = node_path.substr(node_path.find_last_of("/")+1);
- node_path = node_path.substr(5); // chop off leading "/dssi/"
- node_path = node_path.substr(0, node_path.find_last_of("/")); // chop off command at end
-
- //cout << "DSSI: Got message " << command << " for node " << node_path << endl;
-
- QueuedEvent* ev = NULL;
-
- if (command == "update" && !strcmp(types, "s"))
- ev = new DSSIUpdateEvent(NULL, node_path, &argv[0]->s);
- else if (command == "control" && !strcmp(types, "if"))
- ev = new DSSIControlEvent(NULL, node_path, argv[0]->i, argv[1]->f);
- else if (command == "configure" && ~strcmp(types, "ss"))
- ev = new DSSIConfigureEvent(NULL, node_path, &argv[0]->s, &argv[1]->s);
- else if (command == "program" && ~strcmp(types, "ii"))
- ev = new DSSIProgramEvent(NULL, node_path, argv[0]->i, argv[1]->i);
-
- if (ev != NULL)
- push(ev);
- else
- cerr << "[OSCEngineReceiver] Unknown DSSI command received: " << path << endl;
-#endif
- return 0;
-}
-#endif
-
-
// Static Callbacks //
diff --git a/src/libs/engine/OSCEngineReceiver.hpp b/src/libs/engine/OSCEngineReceiver.hpp
index c4f86b8c..918c15e2 100644
--- a/src/libs/engine/OSCEngineReceiver.hpp
+++ b/src/libs/engine/OSCEngineReceiver.hpp
@@ -124,10 +124,6 @@ private:
LO_HANDLER(request_plugins);
LO_HANDLER(request_all_objects);
-#ifdef HAVE_DSSI
- LO_HANDLER(dssi);
-#endif
-
lo_server _server;
};
diff --git a/src/libs/engine/PluginImpl.hpp b/src/libs/engine/PluginImpl.hpp
index e2aa4374..13f17ca6 100644
--- a/src/libs/engine/PluginImpl.hpp
+++ b/src/libs/engine/PluginImpl.hpp
@@ -95,7 +95,6 @@ public:
const char* type_string() const {
if (_type == LADSPA) return "LADSPA";
else if (_type == LV2) return "LV2";
- else if (_type == DSSI) return "DSSI";
else if (_type == Internal) return "Internal";
else if (_type == Patch) return "Patch";
else return "";
@@ -108,7 +107,6 @@ public:
void set_type(const string& type_string) {
if (type_string == "LADSPA") _type = LADSPA;
else if (type_string == "LV2") _type = LV2;
- else if (type_string == "DSSI") _type = DSSI;
else if (type_string == "Internal") _type = Internal;
else if (type_string == "Patch") _type = Patch;
}
@@ -124,11 +122,11 @@ public:
private:
Plugin::Type _type;
string _uri; ///< LV2 only
- string _lib_path; ///< LADSPA/DSSI only
- string _lib_name; ///< LADSPA/DSSI only
- string _plug_label; ///< LADSPA/DSSI only
- string _name; ///< LADSPA/DSSI only
- unsigned long _id; ///< LADSPA/DSSI only
+ string _lib_path; ///< LADSPA only
+ string _lib_name; ///< LADSPA only
+ string _plug_label; ///< LADSPA only
+ string _name; ///< LADSPA only
+ unsigned long _id; ///< LADSPA only
Glib::Module* _module;
diff --git a/src/libs/engine/QueuedEngineInterface.cpp b/src/libs/engine/QueuedEngineInterface.cpp
index b7d18bde..9899916c 100644
--- a/src/libs/engine/QueuedEngineInterface.cpp
+++ b/src/libs/engine/QueuedEngineInterface.cpp
@@ -15,6 +15,7 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include
#include "QueuedEngineInterface.hpp"
#include CONFIG_H_PATH
#include "QueuedEventSource.hpp"
@@ -292,9 +293,7 @@ QueuedEngineInterface::set_program(const string& node_path,
uint32_t bank,
uint32_t program)
{
-#ifdef HAVE_DSSI
- push_queued(new DSSIProgramEvent(_engine, _responder, now(), node_path, bank, program));
-#endif
+ std::cerr << "FIXME: set program" << std::endl;
}
diff --git a/src/libs/engine/events.hpp b/src/libs/engine/events.hpp
index 7f87888d..54b23cce 100644
--- a/src/libs/engine/events.hpp
+++ b/src/libs/engine/events.hpp
@@ -51,12 +51,5 @@
#include "SetPortValueQueuedEvent.hpp"
#include "UnregisterClientEvent.hpp"
-#ifdef HAVE_DSSI
-#include "DSSIConfigureEvent.hpp"
-#include "DSSIControlEvent.hpp"
-#include "DSSIProgramEvent.hpp"
-#include "DSSIUpdateEvent.hpp"
-#endif
-
#endif // EVENTS_H
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
- *
- * 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, 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
- *
- * 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, 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
- *
- * 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, 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
- *
- * 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, 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
- *
- * 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
-#include
-#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, 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
- *
- * 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, 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
- *
- * 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
-#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, 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
- *
- * 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
-
-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, 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 \
--
cgit v1.2.1