prepare region RMS (loudness) normalization
[ardour.git] / libs / ardour / ardour / return.h
index 55ca2d84f6cdc1ac6a59b1480bc8b4e40f5c5de3..d42a280ffb03914964d97f67c1e10ab059e8d5c3 100644 (file)
@@ -32,9 +32,9 @@ namespace ARDOUR {
 
 class Amp;
 class PeakMeter;
+class GainControl;
 
-
-class Return : public IOProcessor
+class LIBARDOUR_API Return : public IOProcessor
 {
 public:
        Return (Session&, bool internal = false);
@@ -42,10 +42,11 @@ public:
 
        uint32_t bit_slot() const { return _bitslot; }
 
-       void run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool);
+       void run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, double speed, pframes_t nframes, bool);
 
        boost::shared_ptr<Amp> amp() const { return _amp; }
        boost::shared_ptr<PeakMeter> meter() const { return _meter; }
+       boost::shared_ptr<GainControl> gain_control() const { return _gain_control; }
 
        bool metering() const { return _metering; }
        void set_metering (bool yn) { _metering = yn; }
@@ -56,7 +57,7 @@ public:
 
        uint32_t pans_required() const { return _configured_input.n_audio(); }
 
-       bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const;
+       bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
        bool configure_io (ChanCount in, ChanCount out);
 
        static uint32_t how_many_returns();
@@ -64,6 +65,7 @@ public:
 
   protected:
        bool _metering;
+       boost::shared_ptr<GainControl> _gain_control;
        boost::shared_ptr<Amp> _amp;
        boost::shared_ptr<PeakMeter> _meter;