13
0

add API to allow mackie controls to use GroupControlDisposition

This commit is contained in:
Paul Davis 2016-01-18 11:57:55 -05:00
parent cd401f5ab4
commit 746d5c6624
2 changed files with 4 additions and 3 deletions

View File

@ -78,10 +78,10 @@ Control::set_control (boost::shared_ptr<AutomationControl> ac)
} }
void void
Control::set_value (float val) Control::set_value (float val, PBD::Controllable::GroupControlDisposition group_override)
{ {
if (normal_ac) { if (normal_ac) {
normal_ac->set_value (normal_ac->interface_to_internal (val), PBD::Controllable::NoGroup); normal_ac->set_value (normal_ac->interface_to_internal (val), group_override);
} }
} }

View File

@ -27,6 +27,7 @@
#include <boost/smart_ptr.hpp> #include <boost/smart_ptr.hpp>
#include "pbd/controllable.h"
#include "pbd/signals.h" #include "pbd/signals.h"
#include "mackie_control_exception.h" #include "mackie_control_exception.h"
@ -70,7 +71,7 @@ public:
virtual void set_control (boost::shared_ptr<ARDOUR::AutomationControl>); virtual void set_control (boost::shared_ptr<ARDOUR::AutomationControl>);
float get_value (); float get_value ();
void set_value (float val); void set_value (float val, PBD::Controllable::GroupControlDisposition gcd = PBD::Controllable::UseGroup);
virtual void start_touch (double when); virtual void start_touch (double when);
virtual void stop_touch (bool mark, double when); virtual void stop_touch (bool mark, double when);