diff options
author | David Robillard <d@drobilla.net> | 2007-10-01 05:27:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-01 05:27:41 +0000 |
commit | a47220df59c076eaa717710dc2ffc6614bee268c (patch) | |
tree | bea9dd981dd6a8ca90bb27c77bb976997be31f2d /src/libs/client/Store.cpp | |
parent | 344cdcbd4f2bc7a9203b4e98da2ac349581e521a (diff) | |
download | ingen-a47220df59c076eaa717710dc2ffc6614bee268c.tar.gz ingen-a47220df59c076eaa717710dc2ffc6614bee268c.tar.bz2 ingen-a47220df59c076eaa717710dc2ffc6614bee268c.zip |
Blink MIDI ports on message transmission.
git-svn-id: http://svn.drobilla.net/lad/ingen@794 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Store.cpp')
-rw-r--r-- | src/libs/client/Store.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index e3d93d60..b399505d 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -51,6 +51,7 @@ Store::Store(SharedPtr<EngineInterface> engine, SharedPtr<SigClientInterface> em emitter->signal_disconnection.connect(sigc::mem_fun(this, &Store::disconnection_event)); emitter->signal_metadata_update.connect(sigc::mem_fun(this, &Store::metadata_update_event)); emitter->signal_control_change.connect(sigc::mem_fun(this, &Store::control_change_event)); + emitter->signal_port_activity.connect(sigc::mem_fun(this, &Store::port_activity_event)); } @@ -509,6 +510,17 @@ Store::control_change_event(const Path& port_path, float value) cerr << "ERROR: control change for nonexistant port " << port_path << endl; } + +void +Store::port_activity_event(const Path& port_path) +{ + SharedPtr<PortModel> port = PtrCast<PortModel>(object(port_path)); + if (port) + port->signal_activity.emit(); + else + cerr << "ERROR: activity for nonexistant port " << port_path << endl; +} + SharedPtr<PatchModel> Store::connection_patch(const Path& src_port_path, const Path& dst_port_path) |