#include <string>
#include <vector>
-#include <glibmm/thread.h>
+#include <glibmm/threads.h>
#include <boost/shared_ptr.hpp>
#include "pbd/signals.h"
* `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:
void connect (boost::shared_ptr<Bundle>, AudioEngine &);
void disconnect (boost::shared_ptr<Bundle>, AudioEngine &);
bool connected_to (boost::shared_ptr<Bundle>, AudioEngine &);
+ bool connected_to_anything (AudioEngine &);
bool has_same_ports (boost::shared_ptr<Bundle>) 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 &);
/// 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> _channel;
private:
Change _pending_change;
};
-struct BundleChannel
+class LIBARDOUR_API BundleChannel
{
+public:
BundleChannel () : channel (-1) {}
BundleChannel (boost::shared_ptr<Bundle> b, int c)