send gain control for MasterSend must use GainAutomation parameter to be groupable
ControlGroups don't admit controls with a different parameter type, and a RouteGroup's _gain_group uses GainAutomation as its parameter type.
This commit is contained in:
parent
857ef78417
commit
1f262d83ee
@ -108,8 +108,13 @@ Send::Send (Session& s, std::shared_ptr<Pannable> p, std::shared_ptr<MuteMaster>
|
|||||||
{
|
{
|
||||||
//boost_debug_shared_ptr_mark_interesting (this, "send");
|
//boost_debug_shared_ptr_mark_interesting (this, "send");
|
||||||
|
|
||||||
std::shared_ptr<AutomationList> gl (new AutomationList (Evoral::Parameter (BusSendLevel), *this));
|
if (role() == MasterSend) {
|
||||||
set_gain_control (std::shared_ptr<GainControl> (new GainControl (_session, Evoral::Parameter(BusSendLevel), gl)));
|
std::shared_ptr<AutomationList> gl (new AutomationList (Evoral::Parameter (GainAutomation), *this));
|
||||||
|
set_gain_control (std::shared_ptr<GainControl> (new GainControl (_session, Evoral::Parameter (GainAutomation), gl)));
|
||||||
|
} else {
|
||||||
|
std::shared_ptr<AutomationList> gl (new AutomationList (Evoral::Parameter (BusSendLevel), *this));
|
||||||
|
set_gain_control (std::shared_ptr<GainControl> (new GainControl (_session, Evoral::Parameter (BusSendLevel), gl)));
|
||||||
|
}
|
||||||
|
|
||||||
gain_control ()->set_flag (Controllable::InlineControl);
|
gain_control ()->set_flag (Controllable::InlineControl);
|
||||||
add_control (gain_control ());
|
add_control (gain_control ());
|
||||||
|
Loading…
Reference in New Issue
Block a user