From 42bfc63d7a25cfdd8587a62f5fef75aae9d45a74 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 15 Jul 2015 16:53:29 +0200 Subject: [PATCH] fix pre-fader insert mute. --- libs/ardour/ardour/port_insert.h | 2 ++ libs/ardour/ardour/processor.h | 2 +- libs/ardour/port_insert.cc | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libs/ardour/ardour/port_insert.h b/libs/ardour/ardour/port_insert.h index 327080984a..54d8583d9a 100644 --- a/libs/ardour/ardour/port_insert.h +++ b/libs/ardour/ardour/port_insert.h @@ -64,6 +64,8 @@ class LIBARDOUR_API PortInsert : public IOProcessor void activate (); void deactivate (); + void set_pre_fader (bool); + uint32_t bit_slot() const { return _bitslot; } void start_latency_detection (); diff --git a/libs/ardour/ardour/processor.h b/libs/ardour/ardour/processor.h index fa75876580..c7d3608b5e 100644 --- a/libs/ardour/ardour/processor.h +++ b/libs/ardour/ardour/processor.h @@ -107,7 +107,7 @@ class LIBARDOUR_API Processor : public SessionObject, public Automatable, public XMLNode& get_state (void); int set_state (const XMLNode&, int version); - void set_pre_fader (bool); + virtual void set_pre_fader (bool); PBD::Signal0 ActiveChanged; PBD::Signal2 ConfigurationChanged; diff --git a/libs/ardour/port_insert.cc b/libs/ardour/port_insert.cc index fa09ea05ac..04796993e4 100644 --- a/libs/ardour/port_insert.cc +++ b/libs/ardour/port_insert.cc @@ -59,6 +59,13 @@ PortInsert::~PortInsert () delete _mtdm; } +void +PortInsert::set_pre_fader (bool p) +{ + Processor::set_pre_fader (p); + _out->set_pre_fader (p); +} + void PortInsert::start_latency_detection () {