mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
add API to allow mackie controls to use GroupControlDisposition
This commit is contained in:
parent
cd401f5ab4
commit
746d5c6624
2 changed files with 4 additions and 3 deletions
|
|
@ -78,10 +78,10 @@ Control::set_control (boost::shared_ptr<AutomationControl> ac)
|
|||
}
|
||||
|
||||
void
|
||||
Control::set_value (float val)
|
||||
Control::set_value (float val, PBD::Controllable::GroupControlDisposition group_override)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <boost/smart_ptr.hpp>
|
||||
|
||||
#include "pbd/controllable.h"
|
||||
#include "pbd/signals.h"
|
||||
|
||||
#include "mackie_control_exception.h"
|
||||
|
|
@ -70,7 +71,7 @@ public:
|
|||
virtual void set_control (boost::shared_ptr<ARDOUR::AutomationControl>);
|
||||
|
||||
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 stop_touch (bool mark, double when);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue