2 #include "ardour/auto_bundle.h"
4 ARDOUR::AutoBundle::AutoBundle (bool i
)
10 ARDOUR::AutoBundle::AutoBundle (std::string
const & n
, bool i
)
17 ARDOUR::AutoBundle::nchannels () const
19 Glib::Mutex::Lock
lm (_ports_mutex
);
20 return ChanCount (type(), _ports
.size ());
23 const ARDOUR::PortList
&
24 ARDOUR::AutoBundle::channel_ports (uint32_t c
) const
26 assert (c
< nchannels().get (type()));
28 Glib::Mutex::Lock
lm (_ports_mutex
);
33 ARDOUR::AutoBundle::set_channels (uint32_t n
)
35 Glib::Mutex::Lock
lm (_ports_mutex
);
40 ARDOUR::AutoBundle::set_port (uint32_t c
, std::string
const & p
)
42 assert (c
< nchannels ().get (type()));
44 Glib::Mutex::Lock
lm (_ports_mutex
);