// used for low-pass filter denormal protection
#define GAIN_COEFF_TINY (1e-10) // -200dB
-Amp::Amp (Session& s, const std::string& name, boost::shared_ptr<AutomationControl> gc, bool control_midi_also)
+Amp::Amp (Session& s, const std::string& name, boost::shared_ptr<GainControl> gc, bool control_midi_also)
: Processor(s, "Amp")
, _apply_gain(true)
, _apply_gain_automation(false)
} else { /* manual (scalar) gain */
- gain_t const dg = _gain_control->user_double();
+ gain_t const dg = _gain_control->get_value();
if (_current_gain != dg) {
}
std::string
-Amp::value_as_string (boost::shared_ptr<AutomationControl> ac) const
+Amp::value_as_string (boost::shared_ptr<const AutomationControl> ac) const
{
if (ac == _gain_control) {
char buffer[32];