13
0

solo safe control starts with its route's time domain

This commit is contained in:
Paul Davis 2021-01-13 09:40:08 -07:00
parent 7f31c11073
commit a7b011c06b
3 changed files with 4 additions and 5 deletions

View File

@ -34,7 +34,7 @@ class Session;
class LIBARDOUR_API SoloSafeControl : public SlavableAutomationControl class LIBARDOUR_API SoloSafeControl : public SlavableAutomationControl
{ {
public: public:
SoloSafeControl (Session& session, std::string const & name); SoloSafeControl (Session& session, std::string const & name, Temporal::TimeDomain);
double get_value () const; double get_value () const;

View File

@ -178,7 +178,7 @@ Route::init ()
_solo_isolate_control.reset (new SoloIsolateControl (_session, X_("solo-iso"), *this)); _solo_isolate_control.reset (new SoloIsolateControl (_session, X_("solo-iso"), *this));
add_control (_solo_isolate_control); add_control (_solo_isolate_control);
_solo_safe_control.reset (new SoloSafeControl (_session, X_("solo-safe"))); _solo_safe_control.reset (new SoloSafeControl (_session, X_("solo-safe"), time_domain()));
add_control (_solo_safe_control); add_control (_solo_safe_control);
/* panning */ /* panning */

View File

@ -28,10 +28,9 @@ using namespace ARDOUR;
using namespace std; using namespace std;
using namespace PBD; using namespace PBD;
#warning NUTEMPO QUESTION what time domain shoudl this really use? SoloSafeControl::SoloSafeControl (Session& session, std::string const & name, Temporal::TimeDomain td)
SoloSafeControl::SoloSafeControl (Session& session, std::string const & name)
: SlavableAutomationControl (session, SoloSafeAutomation, ParameterDescriptor (SoloSafeAutomation), : SlavableAutomationControl (session, SoloSafeAutomation, ParameterDescriptor (SoloSafeAutomation),
boost::shared_ptr<AutomationList>(new AutomationList(Evoral::Parameter(SoloSafeAutomation), Temporal::AudioTime)), boost::shared_ptr<AutomationList>(new AutomationList(Evoral::Parameter(SoloSafeAutomation), td)),
name) name)
, _solo_safe (false) , _solo_safe (false)
{ {