#include "ardour/interthread_info.h"
#include "ardour/recordable.h"
#include "ardour/route.h"
-#include "ardour/public_diskstream.h"
namespace ARDOUR {
class RouteGroup;
class Source;
class Region;
-class Diskstream;
class DiskReader;
class DiskWriter;
class IO;
+class Location;
class MonitorControl;
class RecordEnableControl;
class RecordSafeControl;
* to be played from disk, and modifies that object during recording and
* editing.
*/
-class LIBARDOUR_API Track : public Route, public Recordable, public PublicDiskstream
+class LIBARDOUR_API Track : public Route, public Recordable
{
public:
Track (Session&, std::string name, PresentationInfo::Flag f = PresentationInfo::Flag (0), TrackMode m = Normal, DataType default_type = DataType::AUDIO);
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);
bool can_record();
void set_latency_compensation (framecnt_t);
-
+ void update_latency_information ();
enum FreezeState {
NoFreeze,
Frozen,
bool can_be_record_enabled ();
bool can_be_record_safe ();
- bool using_diskstream_id (PBD::ID) const;
+ void use_captured_sources (SourceList&, CaptureInfos const &);
void set_block_size (pframes_t);
- /* PublicDiskstream interface */
boost::shared_ptr<Playlist> playlist ();
void request_input_monitoring (bool);
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;
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_input_change ();
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 (Location *);
+ 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 ();
void set_align_choice (AlignChoice, bool force=false);
void playlist_modified ();
int use_playlist (DataType, boost::shared_ptr<Playlist>);
- int find_and_use_playlist (DataType, std::string const & name);
+ int find_and_use_playlist (DataType, PBD::ID const &);
int use_copy_playlist ();
int use_new_playlist ();
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;
protected:
XMLNode& state (bool full);
- boost::shared_ptr<Diskstream> _diskstream;
-
boost::shared_ptr<DiskReader> _disk_reader;
boost::shared_ptr<DiskWriter> _disk_writer;
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;
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);
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;
};