mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Replace AutomationControlSet with ControllableSet (2/2)
This commit is contained in:
parent
08a10b7e84
commit
1b23021303
2 changed files with 7 additions and 7 deletions
|
|
@ -3748,11 +3748,11 @@ Mixer_UI::rec_enable_action ()
|
||||||
control_action (&Stripable::rec_enable_control);
|
control_action (&Stripable::rec_enable_control);
|
||||||
}
|
}
|
||||||
|
|
||||||
AutomationControlSet
|
ControllableSet
|
||||||
Mixer_UI::selected_gaincontrols ()
|
Mixer_UI::selected_gaincontrols ()
|
||||||
{
|
{
|
||||||
set_axis_targets_for_operation ();
|
set_axis_targets_for_operation ();
|
||||||
AutomationControlSet rv;
|
ControllableSet rv;
|
||||||
BOOST_FOREACH(AxisView* r, _axis_targets) {
|
BOOST_FOREACH(AxisView* r, _axis_targets) {
|
||||||
MixerStrip* ms = dynamic_cast<MixerStrip*> (r);
|
MixerStrip* ms = dynamic_cast<MixerStrip*> (r);
|
||||||
if (ms) {
|
if (ms) {
|
||||||
|
|
@ -3770,8 +3770,8 @@ Mixer_UI::selected_gaincontrols ()
|
||||||
void
|
void
|
||||||
Mixer_UI::step_gain_up_action ()
|
Mixer_UI::step_gain_up_action ()
|
||||||
{
|
{
|
||||||
AutomationControlSet acs = selected_gaincontrols ();
|
ControllableSet acs = selected_gaincontrols ();
|
||||||
for (AutomationControlSet::const_iterator i = acs.begin(); i != acs.end (); ++i) {
|
for (ControllableSet::const_iterator i = acs.begin(); i != acs.end (); ++i) {
|
||||||
boost::shared_ptr<GainControl> ac = boost::dynamic_pointer_cast<GainControl> (*i);
|
boost::shared_ptr<GainControl> ac = boost::dynamic_pointer_cast<GainControl> (*i);
|
||||||
assert (ac);
|
assert (ac);
|
||||||
ac->set_value (dB_to_coefficient (accurate_coefficient_to_dB (ac->get_value()) + 0.1), Controllable::NoGroup);
|
ac->set_value (dB_to_coefficient (accurate_coefficient_to_dB (ac->get_value()) + 0.1), Controllable::NoGroup);
|
||||||
|
|
@ -3781,8 +3781,8 @@ Mixer_UI::step_gain_up_action ()
|
||||||
void
|
void
|
||||||
Mixer_UI::step_gain_down_action ()
|
Mixer_UI::step_gain_down_action ()
|
||||||
{
|
{
|
||||||
AutomationControlSet acs = selected_gaincontrols ();
|
ControllableSet acs = selected_gaincontrols ();
|
||||||
for (AutomationControlSet::const_iterator i = acs.begin(); i != acs.end (); ++i) {
|
for (ControllableSet::const_iterator i = acs.begin(); i != acs.end (); ++i) {
|
||||||
boost::shared_ptr<GainControl> ac = boost::dynamic_pointer_cast<GainControl> (*i);
|
boost::shared_ptr<GainControl> ac = boost::dynamic_pointer_cast<GainControl> (*i);
|
||||||
assert (ac);
|
assert (ac);
|
||||||
ac->set_value (dB_to_coefficient (accurate_coefficient_to_dB (ac->get_value()) - 0.1), Controllable::NoGroup);
|
ac->set_value (dB_to_coefficient (accurate_coefficient_to_dB (ac->get_value()) - 0.1), Controllable::NoGroup);
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void set_axis_targets_for_operation ();
|
void set_axis_targets_for_operation ();
|
||||||
ARDOUR::AutomationControlSet selected_gaincontrols ();
|
PBD::ControllableSet selected_gaincontrols ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mixer_UI ();
|
Mixer_UI ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue