diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-08-28 12:13:01 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-08-28 14:10:22 +0200 |
commit | 6039b44c0a0dea471dd81c3bc2878fd6049de238 (patch) | |
tree | 33056cb65f3d2b7b3a0a6c2696e0fb7f4564b9b6 /libs/ardour/ardour/bundle.h | |
parent | e07bb078994c7e36f25c49c59c5c9627dc2aff8e (diff) |
Make Bundle::connected_to() able to check only a single DataType
Also use the same iteration logic than in Bundle::connect to avoid
mismatched port types.
Diffstat (limited to 'libs/ardour/ardour/bundle.h')
-rw-r--r-- | libs/ardour/ardour/bundle.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/bundle.h b/libs/ardour/ardour/bundle.h index 704af61256..54d0e602b3 100644 --- a/libs/ardour/ardour/bundle.h +++ b/libs/ardour/ardour/bundle.h @@ -100,7 +100,8 @@ class LIBARDOUR_API Bundle : public PBD::ScopedConnectionList void connect (boost::shared_ptr<Bundle>, AudioEngine &, bool allow_partial = false); void disconnect (boost::shared_ptr<Bundle>, AudioEngine &); - bool connected_to (boost::shared_ptr<Bundle>, AudioEngine &); + bool connected_to (boost::shared_ptr<Bundle>, AudioEngine &, + DataType type = DataType::NIL); bool connected_to_anything (AudioEngine &); bool has_same_ports (boost::shared_ptr<Bundle>) const; uint32_t type_channel_to_overall (DataType, uint32_t) const; |