#include <string>
#include <vector>
#include <cmath>
-#include <jack/jack.h>
-#include <glibmm/thread.h>
+#include <glibmm/threads.h>
#include "pbd/fastlog.h"
#include "pbd/undo.h"
#include "ardour/latent.h"
#include "ardour/port_set.h"
#include "ardour/session_object.h"
+#include "ardour/libardour_visibility.h"
#include "ardour/types.h"
#include "ardour/utils.h"
#include "ardour/buffer_set.h"
* An IO can contain ports of varying types, making routes/inserts/etc with
* varied combinations of types (eg MIDI and audio) possible.
*/
-class IO : public SessionObject, public Latent
+class LIBARDOUR_API IO : public SessionObject, public Latent
{
public:
static const std::string state_node_name;
Output
};
- IO (Session&, const std::string& name, Direction, DataType default_type = DataType::AUDIO);
- IO (Session&, const XMLNode&, DataType default_type = DataType::AUDIO);
+ IO (Session&, const std::string& name, Direction, DataType default_type = DataType::AUDIO, bool sendish = false);
+ IO (Session&, const XMLNode&, DataType default_type = DataType::AUDIO, bool sendish = false);
virtual ~IO();
int ensure_io (ChanCount cnt, bool clear, void *src);
- int connect_ports_to_bundle (boost::shared_ptr<Bundle>, void *);
+ int connect_ports_to_bundle (boost::shared_ptr<Bundle>, bool exclusive, void *);
int disconnect_ports_from_bundle (boost::shared_ptr<Bundle>, void *);
BundleList bundles_connected ();
typedef bool result_type;
template <typename Iter>
- bool operator() (Iter first, Iter last) const {
+ result_type operator() (Iter first, Iter last) const {
bool r = false;
while (first != last) {
if (*first) {
int set_ports (const std::string& str);
private:
- mutable Glib::Mutex io_lock;
+ mutable Glib::Threads::Mutex io_lock;
protected:
PortSet _ports;
Direction _direction;
DataType _default_type;
bool _active;
+ bool _sendish;
private:
int connecting_became_legal ();