abort if configuration fails
[ardour.git] / libs / ardour / amp.cc
index 8dac6d73fc956eee89b17f56e9835b2242603552..d5b9f56ca5f932a7ddc67eaeada5668815c1e2e5 100644 (file)
@@ -39,7 +39,7 @@ using namespace PBD;
 // 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)
@@ -348,25 +348,6 @@ Amp::apply_simple_gain (AudioBuffer& buf, framecnt_t nframes, gain_t target)
        }
 }
 
-void
-Amp::inc_gain (gain_t factor, void *src)
-{
-       float desired_gain = _gain_control->user_double();
-
-       if (fabsf (desired_gain) < GAIN_COEFF_SMALL) {
-               // really?! what's the idea here?
-               set_gain (0.000001f + (0.000001f * factor), src);
-       } else {
-               set_gain (desired_gain + (desired_gain * factor), src);
-       }
-}
-
-void
-Amp::set_gain (gain_t val, void *)
-{
-       _gain_control->set_value (val, Controllable::NoGroup);
-}
-
 XMLNode&
 Amp::state (bool full_state)
 {