remove Track::hidden(); replace with Stripable::is_private_route()
[ardour.git] / libs / ardour / ardour / track.h
index d7b6324808120bb10a599308f7a5afa4d1eeae55..b7f5c1f5f4638c5acad041f644e0cdf0d601d4c6 100644 (file)
@@ -67,6 +67,8 @@ class LIBARDOUR_API Track : public Route, public Recordable
        MonitorState monitoring_state () const;
        MeterState metering_state () const;
 
+       bool set_processor_state (XMLNode const & node, XMLProperty const* prop, ProcessorList& new_order, bool& must_configure);
+
        virtual int no_roll (pframes_t nframes, framepos_t start_frame, framepos_t end_frame,
                             bool state_changing);
 
@@ -81,7 +83,7 @@ class LIBARDOUR_API Track : public Route, public Recordable
        bool can_record();
 
        void set_latency_compensation (framecnt_t);
-
+       void update_latency_information ();
        enum FreezeState {
                NoFreeze,
                Frozen,
@@ -135,6 +137,8 @@ class LIBARDOUR_API Track : public Route, public Recordable
        bool can_be_record_enabled ();
        bool can_be_record_safe ();
 
+       void use_captured_sources (SourceList&, CaptureInfos const &);
+
        void set_block_size (pframes_t);
 
        boost::shared_ptr<Playlist> playlist ();
@@ -142,7 +146,6 @@ class LIBARDOUR_API Track : public Route, public Recordable
        void ensure_input_monitoring (bool);
        bool destructive () const;
        std::list<boost::shared_ptr<Source> > & last_capture_sources ();
-       void set_capture_offset ();
        std::string steal_write_source_name ();
        void reset_write_sources (bool, bool force = false);
        float playback_buffer_load () const;
@@ -151,19 +154,18 @@ class LIBARDOUR_API Track : public Route, public Recordable
        int do_flush (RunContext, bool force = false);
        void set_pending_overwrite (bool);
        int seek (framepos_t, bool complete_refill = false);
-       bool hidden () const;
        int can_internal_playback_seek (framecnt_t);
        int internal_playback_seek (framecnt_t);
        void non_realtime_locate (framepos_t);
-       void non_realtime_set_speed ();
+       void realtime_handle_transport_stopped ();
+       void non_realtime_speed_change ();
        int overwrite_existing_buffers ();
        framecnt_t get_captured_frames (uint32_t n = 0) const;
        int set_loop (ARDOUR::Location *);
        void transport_looped (framepos_t);
-       bool realtime_set_speed (double, bool);
+       bool realtime_speed_change ();
        void transport_stopped_wallclock (struct tm &, time_t, bool);
        bool pending_overwrite () const;
-       double speed () const;
        void prepare_to_stop (framepos_t, framepos_t);
        void set_slaved (bool);
        ChanCount n_channels ();
@@ -182,6 +184,9 @@ class LIBARDOUR_API Track : public Route, public Recordable
        void adjust_playback_buffering ();
        void adjust_capture_buffering ();
 
+       void set_disk_io_position (DiskIOPoint);
+       DiskIOPoint disk_io_point() const { return _disk_io_point; }
+
        PBD::Signal0<void> FreezeChange;
        PBD::Signal0<void> PlaylistChanged;
        PBD::Signal0<void> SpeedChanged;
@@ -195,6 +200,7 @@ class LIBARDOUR_API Track : public Route, public Recordable
        boost::shared_ptr<Playlist>   _playlists[DataType::num_types];
 
        MeterPoint    _saved_meter_point;
+       DiskIOPoint   _disk_io_point;
        TrackMode     _mode;
        bool          _needs_butler;
        boost::shared_ptr<MonitorControl> _monitoring_control;
@@ -224,9 +230,9 @@ class LIBARDOUR_API Track : public Route, public Recordable
 
        virtual void set_state_part_two () = 0;
 
-       FreezeRecord          _freeze_record;
-       XMLNode*              pending_state;
-       bool                  _destructive;
+       FreezeRecord _freeze_record;
+       XMLNode*      pending_state;
+       bool         _destructive;
 
        void maybe_declick (BufferSet&, framecnt_t, int);
 
@@ -239,8 +245,17 @@ class LIBARDOUR_API Track : public Route, public Recordable
        framecnt_t check_initial_delay (framecnt_t nframes, framepos_t&);
        virtual void monitoring_changed (bool, PBD::Controllable::GroupControlDisposition);
 
+       AlignChoice _alignment_choice;
+       void set_align_choice_from_io ();
+       void input_changed ();
+
+       void use_captured_audio_sources (SourceList&, CaptureInfos const &);
+       void use_captured_midi_sources (SourceList&, CaptureInfos const &);
+
 private:
        void parameter_changed (std::string const & p);
+       void setup_invisible_processors_oh_children_of_mine (ProcessorList&);
+       void add_processors_oh_children_of_mine ();
 
        std::string _diskstream_name;
 };