US2400: send_pan_azimuth lookup function (currently mb-only)
[ardour.git] / libs / ardour / ardour / route.h
index c0f2048a1821db272fb07a3e11a96d1219fabc1a..235ae2089b7c7c7ec1c5b1d1c71a764240380864 100644 (file)
@@ -138,14 +138,11 @@ public:
 
        virtual void filter_input (BufferSet &) {}
 
-       virtual int roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample,
-                         int declick, bool& need_butler);
+       int roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, int declick, bool& need_butler);
 
-       virtual int no_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample,
-                            bool state_changing);
+       int no_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, bool state_changing);
 
-       virtual int silent_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample,
-                                bool& need_butler);
+       int silent_roll (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, bool& need_butler);
 
        virtual bool can_record() { return false; }
 
@@ -393,10 +390,9 @@ public:
        PBD::Signal0<void>       io_changed;
 
        /* stateful */
-
        XMLNode& get_state();
+       XMLNode& get_template();
        virtual int set_state (const XMLNode&, int version);
-       virtual XMLNode& get_template();
 
        XMLNode& get_processor_state ();
        void set_processor_state (const XMLNode&);
@@ -561,6 +557,7 @@ public:
         */
        boost::shared_ptr<AutomationControl> send_level_controllable (uint32_t n) const;
        boost::shared_ptr<AutomationControl> send_enable_controllable (uint32_t n) const;
+       boost::shared_ptr<AutomationControl> send_pan_azi_controllable (uint32_t n) const;
        /* for the same value of @param n, this returns the name of the send
         * associated with the pair of controllables returned by the above two methods.
         */
@@ -589,8 +586,8 @@ public:
 
        virtual void use_captured_sources (SourceList& srcs, CaptureInfos const &) {}
 
-  protected:
-        friend class Session;
+protected:
+       friend class Session;
 
        void catch_up_on_solo_mute_override ();
        void set_listen (bool);
@@ -598,11 +595,11 @@ public:
        void curve_reallocate ();
        virtual void set_block_size (pframes_t nframes);
 
-       void fill_buffers_with_input (BufferSet& bufs, boost::shared_ptr<IO> io, pframes_t nframes);
-
-       void passthru (BufferSet&, samplepos_t start_sample, samplepos_t end_sample, pframes_t nframes, int declick, bool gain_automation_ok, bool run_disk_reader);
+       virtual int no_roll_unlocked (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample, bool session_state_changing);
 
-       virtual void write_out_of_band_data (BufferSet& /* bufs */, samplepos_t /* start_sample */, samplepos_t /* end_sample */, samplecnt_t /* nframes */) {}
+       virtual void snapshot_out_of_band_data (samplecnt_t /* nframes */) {}
+       virtual void write_out_of_band_data (BufferSet&, samplecnt_t /* nframes */) const {}
+       virtual void update_controls (BufferSet const&) {}
 
        void process_output_buffers (BufferSet& bufs,
                                     samplepos_t start_sample, samplepos_t end_sample,
@@ -660,7 +657,6 @@ public:
        bool           _denormal_protection;
 
        bool _recordable : 1;
-       bool _silent : 1;
        bool _declickable : 1;
 
        boost::shared_ptr<SoloControl> _solo_control;
@@ -678,13 +674,10 @@ public:
 
        virtual ChanCount input_streams () const;
 
-       virtual XMLNode& state(bool);
+       virtual XMLNode& state (bool save_template);
 
        int configure_processors (ProcessorStreams*);
 
-       void passthru_silence (samplepos_t start_sample, samplepos_t end_sample,
-                              pframes_t nframes, int declick);
-
        void silence (samplecnt_t);
        void silence_unlocked (samplecnt_t);
 
@@ -747,9 +740,11 @@ private:
 
        void setup_invisible_processors ();
 
-       void no_roll_unlocked (pframes_t nframes, samplepos_t start_sample, samplepos_t end_sample);
        pframes_t latency_preroll (pframes_t nframes, samplepos_t& start_sample, samplepos_t& end_sample);
 
+       void run_route (samplepos_t start_sample, samplepos_t end_sample, pframes_t nframes, int declick, bool gain_automation_ok, bool run_disk_reader);
+       void fill_buffers_with_input (BufferSet& bufs, boost::shared_ptr<IO> io, pframes_t nframes);
+
        void reset_instrument_info ();
        void solo_control_changed (bool self, PBD::Controllable::GroupControlDisposition);
        void maybe_note_meter_position ();