From bdf5dead24c16e23977d4b3d2561dbb0f8a7ae4e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 4 Dec 2009 22:56:39 +0000 Subject: [PATCH] Make port inserts work. git-svn-id: svn://localhost/ardour2/branches/3.0@6289 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/port_insert.h | 3 +++ libs/ardour/port_insert.cc | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/libs/ardour/ardour/port_insert.h b/libs/ardour/ardour/port_insert.h index f013a6a442..97f930df6e 100644 --- a/libs/ardour/ardour/port_insert.h +++ b/libs/ardour/ardour/port_insert.h @@ -60,6 +60,9 @@ class PortInsert : public IOProcessor bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const; bool configure_io (ChanCount in, ChanCount out); + void activate (); + void deactivate (); + uint32_t bit_slot() const { return bitslot; } private: diff --git a/libs/ardour/port_insert.cc b/libs/ardour/port_insert.cc index a70718bd3e..eccd5f29f9 100644 --- a/libs/ardour/port_insert.cc +++ b/libs/ardour/port_insert.cc @@ -188,3 +188,19 @@ PortInsert::set_name (const std::string& name) return ret; } + +void +PortInsert::activate () +{ + IOProcessor::activate (); + + _out->activate (); +} + +void +PortInsert::deactivate () +{ + IOProcessor::deactivate (); + + _out->deactivate (); +}