20 #ifndef __ardour_bundle_h__
21 #define __ardour_bundle_h__
25 #include <glibmm/threads.h>
26 #include <boost/shared_ptr.hpp>
69 Bundle (std::string
const &,
bool i =
true);
80 PortList
const & channel_ports (uint32_t)
const;
82 void add_channel (std::string
const &,
DataType);
83 void add_channel (std::string
const &,
DataType, std::string
const &);
84 void add_channel (std::string
const &,
DataType, PortList);
85 std::string channel_name (uint32_t)
const;
86 DataType channel_type (uint32_t)
const;
87 void set_channel_name (uint32_t, std::string
const &);
88 void add_port_to_channel (uint32_t, std::string);
89 void set_port (uint32_t, std::string);
90 void remove_port_from_channel (uint32_t, std::string);
91 void remove_ports_from_channel (uint32_t);
92 void remove_ports_from_channels ();
93 bool port_attached_to_channel (uint32_t, std::string);
94 bool offers_port (std::string)
const;
95 bool offers_port_alone (std::string)
const;
96 void remove_channel (uint32_t);
97 void remove_channels ();
104 uint32_t type_channel_to_overall (
DataType, uint32_t)
const;
105 uint32_t overall_channel_to_type (
DataType, uint32_t)
const;
107 void set_name (std::string
const &);
110 std::string
name ()
const {
return _name; }
112 void set_ports_are_inputs ();
113 void set_ports_are_outputs ();
117 void suspend_signals ();
118 void resume_signals ();
125 ConfigurationChanged = 0x2,
128 DirectionChanged = 0x10
141 int set_channels (std::string
const &);
142 int parse_io_string (std::string
const &, std::vector<std::string> &);
143 void emit_changed (
Change);
158 : bundle (b), channel (c) {}
bool operator!=(shared_ptr< T > const &a, shared_ptr< U > const &b)
std::vector< std::string > PortList
bool ports_are_outputs() const
Channel(std::string n, DataType t, std::string const &p)
std::vector< Channel > _channel
bool ports_are_inputs() const
BundleChannel(boost::shared_ptr< Bundle > b, int c)
Channel(std::string n, DataType t, PortList p)
PBD::Signal1< void, Change > Changed
boost::shared_ptr< Bundle > bundle
bool operator==(const RouteProcessorSelection &a, const RouteProcessorSelection &b)
Channel(std::string n, DataType t)
int channel
channel index, or -1 for "all"
LIBARDOUR_API uint64_t AudioEngine
Glib::Threads::Mutex _channel_mutex
std::ostream & operator<<(std::ostream &o, ARDOUR::Bundle const &)