NO-OP: use set/clear_flag() API instead of set_flags()

This commit is contained in:
Robin Gareus 2020-03-10 20:19:14 +01:00
parent 2b17ded785
commit ebd743d795
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
9 changed files with 13 additions and 13 deletions

View File

@ -263,7 +263,7 @@ Automatable::set_automation_xml_state (const XMLNode& node, Evoral::Parameter le
if (_can_automate_list.find (param) == _can_automate_list.end ()) {
boost::shared_ptr<AutomationControl> actl = automation_control (param);
if (actl && (*niter)->children().size() > 0 && Config->get_limit_n_automatables () > 0) {
actl->set_flags (Controllable::Flag ((int)actl->flags() & ~Controllable::NotAutomatable));
actl->clear_flag (Controllable::NotAutomatable);
can_automate (param);
info << "Marked parmater as automatable" << endl;
} else {

View File

@ -34,7 +34,7 @@ MonitorControl::MonitorControl (Session& session, std::string const & name, Moni
{
_list->set_interpolation(Evoral::ControlList::Discrete);
/* monitoring changes must be synchronized by the process cycle */
set_flags (Controllable::Flag (flags() | Controllable::RealTime));
set_flag (Controllable::RealTime);
}
void

View File

@ -37,7 +37,7 @@ MuteControl::MuteControl (Session& session, std::string const & name, Muteable&
{
_list->set_interpolation (Evoral::ControlList::Discrete);
/* mute changes must be synchronized by the process cycle */
set_flags (Controllable::Flag (flags() | Controllable::RealTime));
set_flag (Controllable::RealTime);
}
void

View File

@ -487,10 +487,10 @@ PluginInsert::create_automatable_parameters ()
boost::shared_ptr<AutomationList> list(new AutomationList(param, desc));
boost::shared_ptr<AutomationControl> c (new PluginControl(this, param, desc, list));
if (!automatable || (limit_automatables > 0 && what_can_be_automated ().size() > limit_automatables)) {
c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::NotAutomatable));
c->set_flag (Controllable::NotAutomatable);
}
if (desc.inline_ctrl) {
c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::InlineControl));
c->set_flag (Controllable::InlineControl);
}
add_control (c);
plugin->set_automation_control (i, c);
@ -508,7 +508,7 @@ PluginInsert::create_automatable_parameters ()
}
boost::shared_ptr<AutomationControl> c (new PluginPropertyControl(this, param, desc, list));
if (!Variant::type_is_numeric(desc.datatype)) {
c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::NotAutomatable));
c->set_flag (Controllable::NotAutomatable);
}
add_control (c);
}

View File

@ -33,7 +33,7 @@ RecordEnableControl::RecordEnableControl (Session& session, std::string const &
_list->set_interpolation(Evoral::ControlList::Discrete);
/* record-enable changes must be synchronized by the process cycle */
set_flags (Controllable::Flag (flags() | Controllable::RealTime));
set_flag (Controllable::RealTime);
}
void

View File

@ -33,7 +33,7 @@ RecordSafeControl::RecordSafeControl (Session& session, std::string const & name
_list->set_interpolation(Evoral::ControlList::Discrete);
/* record-enable changes must be synchronized by the process cycle */
set_flags (Controllable::Flag (flags() | Controllable::RealTime));
set_flag (Controllable::RealTime);
}
void

View File

@ -97,7 +97,7 @@ Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMas
boost::shared_ptr<AutomationList> gl (new AutomationList (Evoral::Parameter (BusSendLevel)));
_gain_control = boost::shared_ptr<GainControl> (new GainControl (_session, Evoral::Parameter(BusSendLevel), gl));
_gain_control->set_flags (Controllable::Flag ((int)_gain_control->flags() | Controllable::InlineControl));
_gain_control->set_flag (Controllable::InlineControl);
add_control (_gain_control);
_amp.reset (new Amp (_session, _("Fader"), _gain_control, true));
@ -294,7 +294,7 @@ Send::set_state (const XMLNode& node, int version)
* this is mainly relevant for Mixbus6.0, copy/paste aux-sends.
* -> remove me after 6.1
*/
_gain_control->set_flags (Controllable::Flag ((int)_gain_control->flags() | Controllable::InlineControl));
_gain_control->set_flag (Controllable::InlineControl);
#endif
}
@ -314,7 +314,7 @@ Send::set_state (const XMLNode& node, int version)
nn = processor;
if ((gain_node = nn->child (Controllable::xml_node_name.c_str ())) != 0) {
_gain_control->set_state (*gain_node, version);
_gain_control->set_flags (Controllable::Flag ((int)_gain_control->flags() | Controllable::InlineControl));
_gain_control->set_flags (Controllable::InlineControl);
}
}
}

View File

@ -41,7 +41,7 @@ SoloControl::SoloControl (Session& session, std::string const & name, Soloable&
{
_list->set_interpolation (Evoral::ControlList::Discrete);
/* solo changes must be synchronized by the process cycle */
set_flags (Controllable::Flag (flags() | Controllable::RealTime));
set_flag (Controllable::RealTime);
}
void

View File

@ -39,7 +39,7 @@ SoloIsolateControl::SoloIsolateControl (Session& session, std::string const & na
{
_list->set_interpolation (Evoral::ControlList::Discrete);
/* isolate changes must be synchronized by the process cycle */
set_flags (Controllable::Flag (flags() | Controllable::RealTime));
set_flag (Controllable::RealTime);
}
void