mute controls starts with its stripable's time domain
This commit is contained in:
parent
ceba073065
commit
df37c62e37
@ -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(); }
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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")));
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user