Refactor LTC File decoder, prepare for Lua bindings
[ardour.git] / libs / ardour / ardour / amp.h
index 89c9c19b916940e49c2cf3bc81a8a44ec259690e..36b54646923eab4307aa71483a9413a396d98107 100644 (file)
@@ -32,9 +32,7 @@ class BufferSet;
 class GainControl;
 class IO;
 
-/** Applies a declick operation to all audio inputs, passing the same number of
- * audio outputs, and passing through any other types unchanged.
- */
+/** Gain Stage (Fader, Trim).  */
 class LIBARDOUR_API Amp : public Processor {
 public:
        Amp(Session& s, const std::string& display_name, boost::shared_ptr<GainControl> control, bool control_midi_also);
@@ -53,19 +51,14 @@ public:
 
        void setup_gain_automation (samplepos_t start_sample, samplepos_t end_sample, samplecnt_t nframes);
 
-       bool apply_gain_automation() const  { return _apply_gain_automation; }
-
-       XMLNode& state (bool full);
+       XMLNode& state ();
        int set_state (const XMLNode&, int version);
 
        static gain_t apply_gain (BufferSet& bufs, samplecnt_t sample_rate, samplecnt_t nframes, gain_t initial, gain_t target, bool midi_amp = true);
        static void apply_simple_gain(BufferSet& bufs, samplecnt_t nframes, gain_t target, bool midi_amp = true);
 
-       static gain_t apply_gain (AudioBuffer& buf, samplecnt_t sample_rate, samplecnt_t nframes, gain_t initial, gain_t target);
-       static void apply_simple_gain(AudioBuffer& buf, samplecnt_t nframes, gain_t target);
-
-       static void declick (BufferSet& bufs, samplecnt_t nframes, int dir);
-       static void update_meters();
+       static gain_t apply_gain (AudioBuffer& buf, samplecnt_t sample_rate, samplecnt_t nframes, gain_t initial, gain_t target, sampleoffset_t offset = 0);
+       static void apply_simple_gain (AudioBuffer& buf, samplecnt_t nframes, gain_t target, sampleoffset_t offset = 0);
 
        boost::shared_ptr<GainControl> gain_control() {
                return _gain_control;