summaryrefslogtreecommitdiffstats
path: root/src/libs/client/Store.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-22 08:03:12 +0000
committerDavid Robillard <d@drobilla.net>2006-06-22 08:03:12 +0000
commit03aa3b084fe3d97f62b67867085c04a23402397e (patch)
treee310d4e54c41c0f2d0a9aac1722d93fb01c6e2fd /src/libs/client/Store.cpp
parentc3dc3ff5a5465ed59b0a8b36eb234130dbf0a9d6 (diff)
downloadingen-03aa3b084fe3d97f62b67867085c04a23402397e.tar.gz
ingen-03aa3b084fe3d97f62b67867085c04a23402397e.tar.bz2
ingen-03aa3b084fe3d97f62b67867085c04a23402397e.zip
More port controls fixes/cleanups
git-svn-id: http://svn.drobilla.net/lad/ingen@78 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Store.cpp')
-rw-r--r--src/libs/client/Store.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp
index ee621ad0..6a91feeb 100644
--- a/src/libs/client/Store.cpp
+++ b/src/libs/client/Store.cpp
@@ -36,6 +36,7 @@ Store::Store(SigClientInterface& emitter)
emitter.connection_sig.connect(sigc::mem_fun(this, &Store::connection_event));
emitter.disconnection_sig.connect(sigc::mem_fun(this, &Store::disconnection_event));
emitter.metadata_update_sig.connect(sigc::mem_fun(this, &Store::metadata_update_event));
+ emitter.control_change_sig.connect(sigc::mem_fun(this, &Store::control_change_event));
}
@@ -311,6 +312,17 @@ Store::metadata_update_event(const string& subject_path, const string& predicate
void
+Store::control_change_event(const string& port_path, float value)
+{
+ CountedPtr<PortModel> port = object(port_path);
+ if (port)
+ port->value(value);
+ else
+ cerr << "ERROR: metadata for nonexistant object." << endl;
+}
+
+
+void
Store::connection_event(const Path& src_port_path, const Path& dst_port_path)
{
// ConnectionModel has the clever patch-path-figuring-out stuff in it, so