13
0

mute controls starts with its stripable's time domain

This commit is contained in:
Paul Davis 2021-01-13 16:52:25 -07:00
parent ceba073065
commit df37c62e37
5 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ class Muteable;
class LIBARDOUR_API MuteControl : public SlavableAutomationControl
{
public:
MuteControl (Session& session, std::string const& name, Muteable&);
MuteControl (Session& session, std::string const& name, Muteable&, Temporal::TimeDomain td);
double get_value () const;
double get_save_value() const { return muted_by_self(); }

View File

@ -590,7 +590,7 @@ Automatable::control_factory(const Evoral::Parameter& param)
} else if (param.type() == MuteAutomation) {
Muteable* m = dynamic_cast<Muteable*>(this);
if (m) {
control = new MuteControl (_a_session, X_("mute"), *m);
control = new MuteControl (_a_session, X_("mute"), *m, time_domain());
}
}

View File

@ -30,9 +30,9 @@ using namespace std;
#warning NUTEMPO QUESTION what time domain shoudl this really use?
MuteControl::MuteControl (Session& session, std::string const & name, Muteable& m)
MuteControl::MuteControl (Session& session, std::string const & name, Muteable& m, Temporal::TimeDomain td)
: SlavableAutomationControl (session, MuteAutomation, ParameterDescriptor (MuteAutomation),
boost::shared_ptr<AutomationList> (new AutomationList (Evoral::Parameter (MuteAutomation), Temporal::AudioTime)),
boost::shared_ptr<AutomationList> (new AutomationList (Evoral::Parameter (MuteAutomation), td)),
name)
, _muteable (m)
{

View File

@ -169,7 +169,7 @@ Route::init ()
add_control (_solo_control);
_solo_control->Changed.connect_same_thread (*this, boost::bind (&Route::solo_control_changed, this, _1, _2));
_mute_control.reset (new MuteControl (_session, X_("mute"), *this));
_mute_control.reset (new MuteControl (_session, X_("mute"), *this, time_domain()));
add_control (_mute_control);
_phase_control.reset (new PhaseControl (_session, X_("phase")));

View File

@ -80,7 +80,7 @@ int
VCA::init ()
{
_solo_control.reset (new SoloControl (_session, X_("solo"), *this, *this));
_mute_control.reset (new MuteControl (_session, X_("mute"), *this));
_mute_control.reset (new MuteControl (_session, X_("mute"), *this, time_domain()));
add_control (_gain_control);
add_control (_solo_control);