X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fbundle.h;h=e84349c647698a724b5e00caa347f49d5cfc4ffe;hb=04416e2d1df3cc8d9f014765e5ca5ce818b7b4d7;hp=e3d56f22f56c618ff107c7656766d176f45e6650;hpb=a052488c002f21839ca7babb855a481a86eba648;p=ardour.git diff --git a/libs/ardour/ardour/bundle.h b/libs/ardour/ardour/bundle.h index e3d56f22f5..e84349c647 100644 --- a/libs/ardour/ardour/bundle.h +++ b/libs/ardour/ardour/bundle.h @@ -99,7 +99,10 @@ class Bundle : public PBD::ScopedConnectionList void connect (boost::shared_ptr, AudioEngine &); void disconnect (boost::shared_ptr, AudioEngine &); bool connected_to (boost::shared_ptr, AudioEngine &); + bool connected_to_anything (AudioEngine &); bool has_same_ports (boost::shared_ptr) const; + uint32_t type_channel_to_overall (DataType, uint32_t) const; + uint32_t overall_channel_to_type (DataType, uint32_t) const; void set_name (std::string const &); @@ -114,6 +117,8 @@ class Bundle : public PBD::ScopedConnectionList void suspend_signals (); void resume_signals (); + bool operator== (Bundle const & other); + /** Things that might change about this bundle */ enum Change { NameChanged = 0x1, ///< the bundle name or a channel name has changed @@ -144,8 +149,9 @@ class Bundle : public PBD::ScopedConnectionList Change _pending_change; }; -struct BundleChannel +class BundleChannel { +public: BundleChannel () : channel (-1) {} BundleChannel (boost::shared_ptr b, int c)