diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-29 17:52:32 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-29 17:52:32 +0000 |
commit | 0dd2fb557c95f15672345e6368a478d25898a4d1 (patch) | |
tree | 8022453f0d85b0719018f9f1d85523fa59669035 /libs/ardour/ardour | |
parent | f31e5b5d714752484f3e5ea2a1228fdef0527154 (diff) |
Update mixer strip input/output button labels from the general JACK port connection / disconnection callback so that all changes are noticed. Fixes #3638.
git-svn-id: svn://localhost/ardour2/branches/3.0@8368 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/audioengine.h | 7 | ||||
-rw-r--r-- | libs/ardour/ardour/io.h | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libs/ardour/ardour/audioengine.h b/libs/ardour/ardour/audioengine.h index a4eb68b1bb..390c0bbda6 100644 --- a/libs/ardour/ardour/audioengine.h +++ b/libs/ardour/ardour/audioengine.h @@ -245,8 +245,11 @@ _ the regular process() call to session->process() is not made. /** Emitted if a JACK port is registered or unregistered */ PBD::Signal0<void> PortRegisteredOrUnregistered; - /** Emitted if a JACK port is connected or disconnected */ - PBD::Signal0<void> PortConnectedOrDisconnected; + /** Emitted if a JACK port is connected or disconnected. + * The Port parameters are the ports being connected / disconnected, or 0 if they are not known to Ardour. + * The bool parameter is true if ports were connected, or false for disconnected. + */ + PBD::Signal3<void, Port *, Port *, bool> PortConnectedOrDisconnected; std::string make_port_name_relative (std::string); std::string make_port_name_non_relative (std::string); diff --git a/libs/ardour/ardour/io.h b/libs/ardour/ardour/io.h index 94dbfadb04..8335225f3c 100644 --- a/libs/ardour/ardour/io.h +++ b/libs/ardour/ardour/io.h @@ -118,6 +118,8 @@ class IO : public SessionObject, public Latent PortSet& ports() { return _ports; } const PortSet& ports() const { return _ports; } + bool has_port (Port *) const; + Port *nth (uint32_t n) const { if (n < _ports.num_ports()) { return _ports.port(n); |