return true;
}
-std::string
-Amp::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
-{
- if (ac == _gain_control) {
- char buffer[32];
- snprintf (buffer, sizeof (buffer), _("%.2fdB"), ac->internal_to_user (ac->get_value ()));
- return buffer;
- }
-
- return Automatable::value_as_string (ac);
-}
-
/** Sets up the buffer that setup_gain_automation and ::run will use for
* gain automationc curves. Must be called before setup_gain_automation,
* and must be called with process lock held.
return _gain_control;
}
- std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
-
private:
bool _denormal_protection;
bool _apply_gain;
virtual void transport_stopped (framepos_t now);
virtual std::string describe_parameter(Evoral::Parameter param);
- virtual std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
AutoState get_parameter_automation_state (Evoral::Parameter param);
virtual void set_parameter_automation_state (Evoral::Parameter param, AutoState);
bool set_name (const std::string& str);
- std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
-
static uint32_t how_many_sends();
static std::string name_and_id_new_send (Session&, Delivery::Role r, uint32_t&, bool);
ControlSet::clear_controls ();
}
-string
-Automatable::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
-{
- return ARDOUR::value_as_string(ac->desc(), ac->get_value());
-}
-
bool
Automatable::find_next_event (double now, double end, Evoral::ControlEvent& next_event, bool only_active) const
{
return true;
}
-string
-Send::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
-{
- return _amp->value_as_string (ac);
-}
-
void
Send::snd_output_changed (IOChange change, void* /*src*/)
{