X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fbundle.h;h=ef2247f12b84338e609fa594f44e605853fac933;hb=a0558694dfdb2a89d54e22d30916ea0118b39301;hp=821dd57896c62c217370c8e03897d763710a6dc4;hpb=19e97d1d64e8aa6d87d79d1f6332065992e5e027;p=ardour.git diff --git a/libs/ardour/ardour/bundle.h b/libs/ardour/ardour/bundle.h index 821dd57896..ef2247f12b 100644 --- a/libs/ardour/ardour/bundle.h +++ b/libs/ardour/ardour/bundle.h @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include "pbd/signals.h" @@ -40,7 +40,7 @@ class AudioEngine; * `Channel' is a rather overloaded term but I can't think of a better * one right now. */ -class Bundle : public PBD::ScopedConnectionList +class LIBARDOUR_API Bundle : public PBD::ScopedConnectionList { public: @@ -99,8 +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 &); @@ -132,7 +134,7 @@ class Bundle : public PBD::ScopedConnectionList /// mutex for _channel_ports and _channel_names /// XXX: is this necessary? - mutable Glib::Mutex _channel_mutex; + mutable Glib::Threads::Mutex _channel_mutex; std::vector _channel; private: @@ -147,8 +149,9 @@ class Bundle : public PBD::ScopedConnectionList Change _pending_change; }; -struct BundleChannel +class LIBARDOUR_API BundleChannel { +public: BundleChannel () : channel (-1) {} BundleChannel (boost::shared_ptr b, int c)