#include <set>
-#include <boost/signals2.hpp>
-#include <boost/shared_ptr.hpp>
#include <boost/scoped_array.hpp>
+#include <boost/shared_ptr.hpp>
#include "pbd/signals.h"
class PortExportChannel : public ExportChannel
{
public:
- typedef std::set<AudioPort *> PortSet;
+ typedef std::set<boost::weak_ptr<AudioPort> > PortSet;
PortExportChannel ();
void set_max_buffer_size(framecnt_t frames);
bool operator< (ExportChannel const & other) const;
- void add_port (AudioPort * port) { ports.insert (port); }
+ void add_port (boost::weak_ptr<AudioPort> port) { ports.insert (port); }
PortSet const & get_ports () { return ports; }
private:
{
public:
enum Type {
+ None,
Raw,
Fades,
Processed
boost::shared_ptr<ProcessorRemover> remover);
~RouteExportChannel();
- static void create_from_route(std::list<ExportChannelPtr> & result, Route & route);
+ static void create_from_route(std::list<ExportChannelPtr> & result, boost::shared_ptr<Route> route);
public: // ExportChannel interface
void set_max_buffer_size(framecnt_t frames);
// Removes the processor from the track when deleted
class ProcessorRemover {
public:
- ProcessorRemover (Route & route, boost::shared_ptr<CapturingProcessor> processor)
+ ProcessorRemover (boost::shared_ptr<Route> route, boost::shared_ptr<CapturingProcessor> processor)
: route (route), processor (processor) {}
~ProcessorRemover();
private:
- Route & route;
+ boost::shared_ptr<Route> route;
boost::shared_ptr<CapturingProcessor> processor;
};