Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::DiskReader Class Reference

#include <disk_reader.h>

Inheritance diagram for ARDOUR::DiskReader:
[legend]

Classes

class  DeclickAmp
 
class  Declicker
 
struct  ReaderChannelInfo
 

Public Member Functions

 DiskReader (Session &, Track &, std::string const &name, Temporal::TimeDomainProvider const &, DiskIOProcessor::Flag f=DiskIOProcessor::Flag(0))
 
 ~DiskReader ()
 
bool set_name (std::string const &str)
 
std::string display_name () const
 
void run (BufferSet &, samplepos_t, samplepos_t, double speed, pframes_t, bool)
 
void realtime_handle_transport_stopped ()
 
void realtime_locate (bool)
 
bool overwrite_existing_buffers ()
 
void set_pending_overwrite (OverwriteReason)
 
void set_loop (Location *)
 
int set_state (const XMLNode &, int version)
 
float buffer_load () const
 
void move_processor_automation (std::weak_ptr< Processor >, std::list< Temporal::RangeMove > const &)
 
int do_refill ()
 
int do_refill_with_alloc (bool partial_fill, bool reverse)
 
bool pending_overwrite () const
 
void adjust_buffering ()
 
bool can_internal_playback_seek (sampleoffset_t distance)
 
void internal_playback_seek (sampleoffset_t distance)
 
int seek (samplepos_t sample, bool complete_refill=false)
 
void playlist_modified ()
 
void reset_tracker ()
 
bool declick_in_progress () const
 
void set_need_midi_catchup (bool)
 
- Public Member Functions inherited from ARDOUR::DiskIOProcessor
 DiskIOProcessor (Session &, Track &, const std::string &name, Flag f, Temporal::TimeDomainProvider const &)
 
virtual ~DiskIOProcessor ()
 
int set_block_size (pframes_t)
 
bool configure_io (ChanCount in, ChanCount out)
 
bool can_support_io_configuration (const ChanCount &in, ChanCount &out)
 
void set_flag (Flag f)
 
void unset_flag (Flag f)
 
bool hidden () const
 
bool recordable () const
 
virtual void non_realtime_locate (samplepos_t)
 
virtual void punch_in ()
 
virtual void punch_out ()
 
bool slaved () const
 
void set_slaved (bool yn)
 
int add_channel (uint32_t how_many)
 
int remove_channel (uint32_t how_many)
 
bool need_butler () const
 
std::shared_ptr< Playlistget_playlist (DataType dt) const
 
std::shared_ptr< MidiPlaylistmidi_playlist () const
 
std::shared_ptr< AudioPlaylistaudio_playlist () const
 
- Public Member Functions inherited from ARDOUR::Processor
 Processor (Session &, const std::string &name, Temporal::TimeDomainProvider const &)
 
 Processor (const Processor &other)
 
virtual ~Processor ()
 
virtual bool display_to_user () const
 
virtual void set_display_to_user (bool)
 
bool active () const
 ardour hard bypass More...
 
virtual bool enabled () const
 processor enabled/bypass More...
 
virtual bool bypassable () const
 enable is not automated or locked More...
 
virtual bool does_routing () const
 
bool get_next_ab_is_active () const
 
void set_next_ab_is_active (bool yn)
 
virtual samplecnt_t signal_latency () const
 
virtual void set_input_latency (samplecnt_t cnt)
 
samplecnt_t input_latency () const
 
virtual void set_output_latency (samplecnt_t cnt)
 
samplecnt_t output_latency () const
 
virtual void set_capture_offset (samplecnt_t cnt)
 
samplecnt_t capture_offset () const
 
virtual void set_playback_offset (samplecnt_t cnt)
 
samplecnt_t playback_offset () const
 
virtual bool requires_fixed_sized_buffers () const
 
virtual void silence (samplecnt_t nframes, samplepos_t start_sample)
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual void flush ()
 
virtual void enable (bool yn)
 
virtual ChanCount input_streams () const
 
virtual ChanCount output_streams () const
 
virtual void monitoring_changed ()
 
XMLNodeget_state () const
 
int set_state (const XMLNode &, int version)
 
virtual void set_pre_fader (bool)
 
virtual bool get_pre_fader () const
 
ProcessorWindowProxywindow_proxy () const
 
void set_window_proxy (ProcessorWindowProxy *wp)
 
PluginPinWindowProxypinmgr_proxy () const
 
void set_pingmgr_proxy (PluginPinWindowProxy *wp)
 
virtual void set_owner (SessionObject *)
 
SessionObjectowner () const
 
- Public Member Functions inherited from ARDOUR::SessionObject
 SessionObject (Session &session, const std::string &name)
 
Sessionsession () const
 
std::string name () const
 
- Public Member Functions inherited from ARDOUR::SessionHandleRef
 SessionHandleRef (ARDOUR::Session &s)
 
virtual ~SessionHandleRef ()
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
 ScopedConnectionList (const ScopedConnectionList &)=delete
 
ScopedConnectionListoperator= (const ScopedConnectionList &)=delete
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_change (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (PBD::Command *) const
 
virtual void rdiff (std::vector< PBD::Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 
- Public Member Functions inherited from PBD::Destructible
virtual ~Destructible ()
 
virtual void drop_references ()
 
- Public Member Functions inherited from ARDOUR::Automatable
 Automatable (Session &, Temporal::TimeDomainProvider const &)
 
 Automatable (const Automatable &other)
 
virtual ~Automatable ()
 
virtual void automatables (PBD::ControllableSet &) const
 
std::shared_ptr< Evoral::Controlcontrol_factory (const Evoral::Parameter &id)
 
std::shared_ptr< AutomationControlautomation_control (PBD::ID const &id) const
 
virtual std::shared_ptr< AutomationControlautomation_control_recurse (PBD::ID const &id) const
 
std::shared_ptr< AutomationControlautomation_control (const Evoral::Parameter &id)
 
std::shared_ptr< AutomationControlautomation_control (const Evoral::Parameter &id, bool create_if_missing)
 
std::shared_ptr< const AutomationControlautomation_control (const Evoral::Parameter &id) const
 
virtual void add_control (std::shared_ptr< Evoral::Control >)
 
virtual bool find_next_event (Temporal::timepos_t const &start, Temporal::timepos_t const &end, Evoral::ControlEvent &ev, bool only_active=true) const
 
void clear_controls ()
 
virtual void non_realtime_transport_stop (samplepos_t now, bool flush)
 
virtual void automation_run (samplepos_t, pframes_t, bool only_active=false)
 
virtual std::string describe_parameter (Evoral::Parameter param)
 
AutoState get_parameter_automation_state (Evoral::Parameter param)
 
virtual void set_parameter_automation_state (Evoral::Parameter param, AutoState)
 
void protect_automation ()
 
const std::set< Evoral::Parameter > & what_can_be_automated () const
 
std::vector< Evoral::Parameterall_automatable_params () const
 
void what_has_existing_automation (std::set< Evoral::Parameter > &) const
 
int set_automation_xml_state (const XMLNode &, Evoral::Parameter default_param)
 
XMLNodeget_automation_xml_state () const
 
void start_domain_bounce (Temporal::DomainBounceInfo &)
 
void finish_domain_bounce (Temporal::DomainBounceInfo &)
 
- Public Member Functions inherited from Evoral::ControlSet
 ControlSet ()
 
 ControlSet (const ControlSet &)
 
virtual ~ControlSet ()
 
std::shared_ptr< Controlcontrol (const Parameter &id, bool create_if_missing=false)
 
std::shared_ptr< const Controlcontrol (const Parameter &id) const
 
Controlscontrols ()
 
const Controlscontrols () const
 
virtual bool controls_empty () const
 
void what_has_data (std::set< Parameter > &) const
 
Glib::Threads::Mutex & control_lock () const
 
void start_domain_bounce (Temporal::DomainBounceInfo &)
 
void finish_domain_bounce (Temporal::DomainBounceInfo &)
 
- Public Member Functions inherited from Temporal::TimeDomainSwapper
virtual ~TimeDomainSwapper ()
 
- Public Member Functions inherited from ARDOUR::Slavable
 Slavable ()
 
virtual ~Slavable ()
 
XMLNodeget_state () const
 
int set_state (XMLNode const &, int)
 
virtual void assign (std::shared_ptr< VCA >)
 
void unassign (std::shared_ptr< VCA >)
 
std::vector< std::shared_ptr< VCA > > masters (VCAManager *) const
 
bool assigned_to (VCAManager *, std::shared_ptr< VCA >) const
 
- Public Member Functions inherited from Temporal::TimeDomainProvider
 TimeDomainProvider ()
 
 TimeDomainProvider (TimeDomain td)
 
 TimeDomainProvider (TimeDomain td, TimeDomainProvider const &p)
 
 TimeDomainProvider (TimeDomainProvider const &other)
 
 TimeDomainProvider (TimeDomainProvider const &parnt, bool)
 
virtual ~TimeDomainProvider ()
 
XMLNodeget_state () const
 
int set_state (const XMLNode &, int version)
 
TimeDomainProvideroperator= (TimeDomainProvider const &other)
 
TimeDomain time_domain () const
 
bool has_own_time_domain () const
 
void clear_time_domain ()
 
void set_time_domain (TimeDomain td)
 
TimeDomainProvider const * time_domain_parent () const
 
bool has_time_domain_parent () const
 
void clear_time_domain_parent ()
 
void set_time_domain_parent (TimeDomainProvider const &p)
 
virtual void time_domain_changed ()
 
- Public Member Functions inherited from ARDOUR::Latent
 Latent ()
 
 Latent (Latent const &)
 
virtual ~Latent ()
 
samplecnt_t effective_latency () const
 
samplecnt_t user_latency () const
 
void unset_user_latency ()
 
virtual void set_user_latency (samplecnt_t val)
 
- Public Member Functions inherited from ARDOUR::HasLatency
virtual ~HasLatency ()
 

Static Public Member Functions

static samplecnt_t chunk_samples ()
 
static void set_chunk_samples (samplecnt_t n)
 
static samplecnt_t default_chunk_samples ()
 
static void allocate_working_buffers ()
 
static void free_working_buffers ()
 
static void inc_no_disk_output ()
 
static void dec_no_disk_output ()
 
static bool no_disk_output ()
 
static void reset_loop_declick (Location *, samplecnt_t sample_rate)
 
static void alloc_loop_declick (samplecnt_t sample_rate)
 
- Static Public Member Functions inherited from ARDOUR::DiskIOProcessor
static void set_buffering_parameters (BufferingPreset bp)
 
- Static Public Member Functions inherited from ARDOUR::SessionObject
static void make_property_quarks ()
 
- Static Public Member Functions inherited from ARDOUR::Automatable
static void find_next_ac_event (std::shared_ptr< AutomationControl >, Temporal::timepos_t const &start, Temporal::timepos_t const &end, Evoral::ControlEvent &ev)
 
static void find_prev_ac_event (std::shared_ptr< AutomationControl >, Temporal::timepos_t const &start, Temporal::timepos_t const &end, Evoral::ControlEvent &ev)
 
- Static Public Member Functions inherited from ARDOUR::Latent
static void force_zero_latency (bool en)
 
static bool zero_latency ()
 

Public Attributes

PBD::Signal< void()> AlignmentStyleChanged
 
- Public Attributes inherited from ARDOUR::DiskIOProcessor
PBD::Signal< void()> SpeedChanged
 
PBD::Signal< void()> ReverseChanged
 
- Public Attributes inherited from ARDOUR::Processor
PBD::Signal< void()> ActiveChanged
 
PBD::Signal< void()> BypassableChanged
 
PBD::Signal< void(ChanCount, ChanCount)> ConfigurationChanged
 
PBD::Signal< void()> ToggleUI
 
PBD::Signal< void()> ShowUI
 
PBD::Signal< void()> HideUI
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal< void(const PropertyChange &)> PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal< void()> Destroyed
 
PBD::Signal< void()> DropReferences
 
- Public Attributes inherited from ARDOUR::Automatable
PBD::Signal< void()> AutomationStateChanged
 
- Public Attributes inherited from ARDOUR::Slavable
PBD::Signal< void(std::shared_ptr< VCA >, bool)> AssignmentChange
 
- Public Attributes inherited from Temporal::TimeDomainProvider
PBD::Signal< void()> TimeDomainChanged
 
- Public Attributes inherited from ARDOUR::Latent
PBD::Signal< void()> LatencyChanged
 

Static Public Attributes

static PBD::Signal< void()> Underrun
 
- Static Public Attributes inherited from ARDOUR::DiskIOProcessor
static const std::string state_node_name
 
- Static Public Attributes inherited from ARDOUR::Processor
static const std::string state_node_name
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Static Public Attributes inherited from ARDOUR::Automatable
static bool skip_saving_automation
 
static const std::string xml_node_name
 
- Static Public Attributes inherited from ARDOUR::Slavable
static std::string xml_node_name
 
static PBD::Signal< void(VCAManager *)> Assign
 
- Static Public Attributes inherited from ARDOUR::Latent
static PBD::Signal< void()> DisableSwitchChanged
 

Protected Member Functions

XMLNodestate () const
 
void resolve_tracker (Evoral::EventSink< samplepos_t > &buffer, samplepos_t time)
 
int use_playlist (DataType, std::shared_ptr< Playlist >)
 
void playlist_ranges_moved (std::list< Temporal::RangeMove > const &, bool)
 
int add_channel_to (std::shared_ptr< ChannelList >, uint32_t how_many)
 
- Protected Member Functions inherited from ARDOUR::DiskIOProcessor
void init ()
 
int remove_channel_from (std::shared_ptr< ChannelList >, uint32_t how_many)
 
virtual void playlist_changed (const PBD::PropertyChange &)
 
virtual void playlist_deleted (std::weak_ptr< Playlist >)
 
- Protected Member Functions inherited from ARDOUR::Processor
virtual int set_state_2X (const XMLNode &, int version)
 
bool check_active ()
 
bool map_loop_range (samplepos_t &start, samplepos_t &end) const
 
- Protected Member Functions inherited from ARDOUR::SessionHandleRef
virtual void session_going_away ()
 
virtual void insanity_check ()
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &) const
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
bool regenerate_xml_or_string_ids () const
 
- Protected Member Functions inherited from ARDOUR::Automatable
void can_automate (Evoral::Parameter)
 
virtual void automation_list_automation_state_changed (Evoral::Parameter const &, AutoState)
 
int load_automation (const std::string &path)
 
int old_set_automation_state (const XMLNode &)
 
SlavableAutomationControlList slavables () const
 
- Protected Member Functions inherited from Evoral::ControlSet
virtual void control_list_marked_dirty ()
 
virtual void control_list_interpolation_changed (Parameter const &, ControlList::InterpolationStyle)
 
- Protected Member Functions inherited from Temporal::TimeDomainProvider
void listen ()
 
- Protected Member Functions inherited from ARDOUR::Latent
int set_state (const XMLNode &node, int version)
 
void add_state (XMLNode *) const
 

Private Member Functions

samplecnt_t audio_read (Sample *sum_buffer, Sample *mixdown_buffer, float *gain_buffer, samplepos_t &start, samplecnt_t cnt, ReaderChannelInfo *rci, int channel, bool reversed)
 
int refill (Sample *sum_buffer, Sample *mixdown_buffer, float *gain_buffer, samplecnt_t fill_level, bool reversed)
 
int refill_audio (Sample *sum_buffer, Sample *mixdown_buffer, float *gain_buffer, samplecnt_t fill_level, bool reversed)
 
sampleoffset_t calculate_playback_distance (pframes_t)
 
RTMidiBufferrt_midibuffer ()
 
void get_midi_playback (MidiBuffer &dst, samplepos_t start_sample, samplepos_t end_sample, MonitorState, BufferSet &, double speed, samplecnt_t distance)
 
void maybe_xfade_loop (Sample *, samplepos_t read_start, samplepos_t read_end, ReaderChannelInfo *)
 
void configuration_changed ()
 
bool overwrite_existing_audio ()
 
bool overwrite_existing_midi ()
 
void setup_preloop_buffer ()
 

Private Attributes

samplepos_t overwrite_sample
 
sampleoffset_t overwrite_offset
 
samplepos_t new_file_sample
 
bool run_must_resolve
 
IOChange input_change_pending
 
samplepos_t file_sample [DataType::num_types]
 
std::atomic< OverwriteReason_pending_overwrite
 
DeclickAmp _declick_amp
 
sampleoffset_t _declick_offs
 
bool _declick_enabled
 
MidiNoteTracker _tracker
 
std::optional< bool > _last_read_reversed
 
std::optional< bool > _last_read_loop
 
samplepos_t last_refill_loop_start
 
bool _midi_catchup
 
bool _need_midi_catchup
 

Static Private Attributes

static samplecnt_t _chunk_samples
 
static std::atomic< int > _no_disk_output
 
static Declicker loop_declick_in
 
static Declicker loop_declick_out
 
static samplecnt_t loop_fade_length
 
static thread_local Sample_sum_buffer
 
static thread_local Sample_mixdown_buffer
 
static thread_local gain_t_gain_buffer
 

Friends

class Track
 
class MidiTrack
 

Additional Inherited Members

- Public Types inherited from ARDOUR::DiskIOProcessor
enum  Flag { Recordable = 0x1 , Hidden = 0x2 , NonLayered = 0x8 }
 
- Public Types inherited from Evoral::ControlSet
typedef std::map< Parameter, std::shared_ptr< Control > > Controls
 
- Protected Types inherited from ARDOUR::DiskIOProcessor
enum  TransitionType { CaptureStart = 0 , CaptureEnd }
 
typedef std::vector< ChannelInfo * > ChannelList
 
- Static Protected Member Functions inherited from ARDOUR::DiskIOProcessor
static bool get_buffering_presets (BufferingPreset bp, samplecnt_t &read_chunk_size, samplecnt_t &read_buffer_size, samplecnt_t &write_chunk_size, samplecnt_t &write_buffer_size)
 
static void get_location_times (const Location *location, timepos_t *start, timepos_t *end, timecnt_t *length)
 
- Protected Attributes inherited from ARDOUR::DiskIOProcessor
Flag _flags
 
bool _slaved
 
bool in_set_state
 
samplepos_t playback_sample
 
bool _need_butler
 
Track_track
 
Glib::Threads::Mutex state_lock
 
SerializedRCUManager< ChannelListchannels
 
std::shared_ptr< Playlist_playlists [DataType::num_types]
 
PBD::ScopedConnectionList playlist_connections
 
MidiRingBuffer< samplepos_t > * _midi_buf
 
- Protected Attributes inherited from ARDOUR::Processor
int _pending_active
 
bool _active
 
bool _next_ab_is_active
 
bool _configured
 
ChanCount _configured_input
 
ChanCount _configured_output
 
bool _display_to_user
 
bool _pre_fader
 true if this processor is currently placed before the Amp, otherwise false More...
 
void * _ui_pointer
 
ProcessorWindowProxy_window_proxy
 
PluginPinWindowProxy_pinmgr_proxy
 
SessionObject_owner
 
samplecnt_t _input_latency
 
samplecnt_t _output_latency
 
samplecnt_t _capture_offset
 
samplecnt_t _playback_offset
 
Location_loop_location
 
- Protected Attributes inherited from ARDOUR::SessionObject
PBD::Property< std::string > _name
 
- Protected Attributes inherited from ARDOUR::SessionHandleRef
ARDOUR::Session_session
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 
- Protected Attributes inherited from ARDOUR::Automatable
Session_a_session
 
SerializedRCUManager< AutomationControlList_automated_controls
 
std::set< Evoral::Parameter_can_automate_list
 
samplepos_t _last_automation_snapshot
 
- Protected Attributes inherited from Evoral::ControlSet
Glib::Threads::Mutex _control_lock
 
Controls _controls
 
PBD::ScopedConnectionList _list_connections
 

Detailed Description

Definition at line 41 of file disk_reader.h.

Constructor & Destructor Documentation

◆ DiskReader()

ARDOUR::DiskReader::DiskReader ( Session ,
Track ,
std::string const &  name,
Temporal::TimeDomainProvider const &  ,
DiskIOProcessor::Flag  f = DiskIOProcessor::Flag(0) 
)

◆ ~DiskReader()

ARDOUR::DiskReader::~DiskReader ( )

Member Function Documentation

◆ add_channel_to()

int ARDOUR::DiskReader::add_channel_to ( std::shared_ptr< ChannelList ,
uint32_t  how_many 
)
protectedvirtual

◆ adjust_buffering()

void ARDOUR::DiskReader::adjust_buffering ( )
virtual

◆ alloc_loop_declick()

static void ARDOUR::DiskReader::alloc_loop_declick ( samplecnt_t  sample_rate)
static

◆ allocate_working_buffers()

static void ARDOUR::DiskReader::allocate_working_buffers ( )
static

◆ audio_read()

samplecnt_t ARDOUR::DiskReader::audio_read ( Sample sum_buffer,
Sample mixdown_buffer,
float *  gain_buffer,
samplepos_t start,
samplecnt_t  cnt,
ReaderChannelInfo rci,
int  channel,
bool  reversed 
)
private

◆ buffer_load()

float ARDOUR::DiskReader::buffer_load ( ) const
virtual
Returns
A number between 0 and 1, where 0 indicates that the playback/capture buffer is dry (ie the disk subsystem could not keep up) and 1 indicates that the buffer is full.

Implements ARDOUR::DiskIOProcessor.

◆ calculate_playback_distance()

sampleoffset_t ARDOUR::DiskReader::calculate_playback_distance ( pframes_t  )
private

◆ can_internal_playback_seek()

bool ARDOUR::DiskReader::can_internal_playback_seek ( sampleoffset_t  distance)

◆ chunk_samples()

static samplecnt_t ARDOUR::DiskReader::chunk_samples ( )
inlinestatic

Definition at line 51 of file disk_reader.h.

◆ configuration_changed()

void ARDOUR::DiskReader::configuration_changed ( )
privatevirtual

◆ dec_no_disk_output()

static void ARDOUR::DiskReader::dec_no_disk_output ( )
static

◆ declick_in_progress()

bool ARDOUR::DiskReader::declick_in_progress ( ) const

◆ default_chunk_samples()

static samplecnt_t ARDOUR::DiskReader::default_chunk_samples ( )
static

◆ display_name()

std::string ARDOUR::DiskReader::display_name ( ) const
virtual

Reimplemented from ARDOUR::Processor.

◆ do_refill()

int ARDOUR::DiskReader::do_refill ( )

◆ do_refill_with_alloc()

int ARDOUR::DiskReader::do_refill_with_alloc ( bool  partial_fill,
bool  reverse 
)

For contexts outside the normal butler refill loop (allocates temporary working buffers)

◆ free_working_buffers()

static void ARDOUR::DiskReader::free_working_buffers ( )
static

◆ get_midi_playback()

void ARDOUR::DiskReader::get_midi_playback ( MidiBuffer dst,
samplepos_t  start_sample,
samplepos_t  end_sample,
MonitorState  ,
BufferSet ,
double  speed,
samplecnt_t  distance 
)
private

◆ inc_no_disk_output()

static void ARDOUR::DiskReader::inc_no_disk_output ( )
static

◆ internal_playback_seek()

void ARDOUR::DiskReader::internal_playback_seek ( sampleoffset_t  distance)

◆ maybe_xfade_loop()

void ARDOUR::DiskReader::maybe_xfade_loop ( Sample ,
samplepos_t  read_start,
samplepos_t  read_end,
ReaderChannelInfo  
)
private

◆ move_processor_automation()

void ARDOUR::DiskReader::move_processor_automation ( std::weak_ptr< Processor ,
std::list< Temporal::RangeMove > const &   
)

◆ no_disk_output()

static bool ARDOUR::DiskReader::no_disk_output ( )
inlinestatic

Definition at line 117 of file disk_reader.h.

◆ overwrite_existing_audio()

bool ARDOUR::DiskReader::overwrite_existing_audio ( )
private

◆ overwrite_existing_buffers()

bool ARDOUR::DiskReader::overwrite_existing_buffers ( )

◆ overwrite_existing_midi()

bool ARDOUR::DiskReader::overwrite_existing_midi ( )
private

◆ pending_overwrite()

bool ARDOUR::DiskReader::pending_overwrite ( ) const

◆ playlist_modified()

void ARDOUR::DiskReader::playlist_modified ( )
virtual

Reimplemented from ARDOUR::DiskIOProcessor.

◆ playlist_ranges_moved()

void ARDOUR::DiskReader::playlist_ranges_moved ( std::list< Temporal::RangeMove > const &  ,
bool   
)
protectedvirtual

Reimplemented from ARDOUR::DiskIOProcessor.

◆ realtime_handle_transport_stopped()

void ARDOUR::DiskReader::realtime_handle_transport_stopped ( )
virtual

Reimplemented from ARDOUR::Processor.

◆ realtime_locate()

void ARDOUR::DiskReader::realtime_locate ( bool  )
virtual

Reimplemented from ARDOUR::Processor.

◆ refill()

int ARDOUR::DiskReader::refill ( Sample sum_buffer,
Sample mixdown_buffer,
float *  gain_buffer,
samplecnt_t  fill_level,
bool  reversed 
)
private

◆ refill_audio()

int ARDOUR::DiskReader::refill_audio ( Sample sum_buffer,
Sample mixdown_buffer,
float *  gain_buffer,
samplecnt_t  fill_level,
bool  reversed 
)
private

◆ reset_loop_declick()

static void ARDOUR::DiskReader::reset_loop_declick ( Location ,
samplecnt_t  sample_rate 
)
static

◆ reset_tracker()

void ARDOUR::DiskReader::reset_tracker ( )

◆ resolve_tracker()

void ARDOUR::DiskReader::resolve_tracker ( Evoral::EventSink< samplepos_t > &  buffer,
samplepos_t  time 
)
protected

◆ rt_midibuffer()

RTMidiBuffer* ARDOUR::DiskReader::rt_midibuffer ( )
private

◆ run()

void ARDOUR::DiskReader::run ( BufferSet bufs,
samplepos_t  start_sample,
samplepos_t  end_sample,
double  speed,
pframes_t  nframes,
bool  result_required 
)
virtual

The main process function for processors

Parameters
bufsbufferset of data to process in-place
start_sampleabsolute timeline position in audio-samples to commence processing (latency compensated)
end_sampleabsolute timeline position in audio-samples, usually start_sample +/- nframes
speedtransport speed. usually -1, 0, +1
nframesnumber of audio samples to process
result_requiredtrue if, on return from this method, bufs is required to contain valid data; if false, the method need not bother writing to bufs if it doesn't want to.

Reimplemented from ARDOUR::Processor.

◆ seek()

int ARDOUR::DiskReader::seek ( samplepos_t  sample,
bool  complete_refill = false 
)
virtual

◆ set_chunk_samples()

static void ARDOUR::DiskReader::set_chunk_samples ( samplecnt_t  n)
inlinestatic

Definition at line 56 of file disk_reader.h.

◆ set_loop()

void ARDOUR::DiskReader::set_loop ( Location )
virtual

Reimplemented from ARDOUR::Processor.

◆ set_name()

bool ARDOUR::DiskReader::set_name ( std::string const &  str)
virtual

Reimplemented from ARDOUR::SessionObject.

◆ set_need_midi_catchup()

void ARDOUR::DiskReader::set_need_midi_catchup ( bool  )

◆ set_pending_overwrite()

void ARDOUR::DiskReader::set_pending_overwrite ( OverwriteReason  )

◆ set_state()

int ARDOUR::DiskReader::set_state ( const XMLNode ,
int  version 
)
virtual

Reimplemented from ARDOUR::DiskIOProcessor.

◆ setup_preloop_buffer()

void ARDOUR::DiskReader::setup_preloop_buffer ( )
private

◆ state()

XMLNode& ARDOUR::DiskReader::state ( ) const
protectedvirtual

Reimplemented from ARDOUR::Processor.

◆ use_playlist()

int ARDOUR::DiskReader::use_playlist ( DataType  ,
std::shared_ptr< Playlist  
)
protectedvirtual

Reimplemented from ARDOUR::DiskIOProcessor.

Friends And Related Function Documentation

◆ MidiTrack

friend class MidiTrack
friend

Definition at line 126 of file disk_reader.h.

◆ Track

friend class Track
friend

Definition at line 125 of file disk_reader.h.

Member Data Documentation

◆ _chunk_samples

samplecnt_t ARDOUR::DiskReader::_chunk_samples
staticprivate

Definition at line 216 of file disk_reader.h.

◆ _declick_amp

DeclickAmp ARDOUR::DiskReader::_declick_amp
private

Definition at line 209 of file disk_reader.h.

◆ _declick_enabled

bool ARDOUR::DiskReader::_declick_enabled
private

Definition at line 211 of file disk_reader.h.

◆ _declick_offs

sampleoffset_t ARDOUR::DiskReader::_declick_offs
private

Definition at line 210 of file disk_reader.h.

◆ _gain_buffer

thread_local gain_t* ARDOUR::DiskReader::_gain_buffer
staticprivate

Definition at line 234 of file disk_reader.h.

◆ _last_read_loop

std::optional<bool> ARDOUR::DiskReader::_last_read_loop
private

Definition at line 214 of file disk_reader.h.

◆ _last_read_reversed

std::optional<bool> ARDOUR::DiskReader::_last_read_reversed
private

Definition at line 213 of file disk_reader.h.

◆ _midi_catchup

bool ARDOUR::DiskReader::_midi_catchup
private

Definition at line 254 of file disk_reader.h.

◆ _mixdown_buffer

thread_local Sample* ARDOUR::DiskReader::_mixdown_buffer
staticprivate

Definition at line 233 of file disk_reader.h.

◆ _need_midi_catchup

bool ARDOUR::DiskReader::_need_midi_catchup
private

Definition at line 255 of file disk_reader.h.

◆ _no_disk_output

std::atomic<int> ARDOUR::DiskReader::_no_disk_output
staticprivate

Definition at line 218 of file disk_reader.h.

◆ _pending_overwrite

std::atomic<OverwriteReason> ARDOUR::DiskReader::_pending_overwrite
mutableprivate

Definition at line 207 of file disk_reader.h.

◆ _sum_buffer

thread_local Sample* ARDOUR::DiskReader::_sum_buffer
staticprivate

Definition at line 232 of file disk_reader.h.

◆ _tracker

MidiNoteTracker ARDOUR::DiskReader::_tracker
private

Definition at line 212 of file disk_reader.h.

◆ AlignmentStyleChanged

PBD::Signal<void()> ARDOUR::DiskReader::AlignmentStyleChanged

Definition at line 72 of file disk_reader.h.

◆ file_sample

samplepos_t ARDOUR::DiskReader::file_sample[DataType::num_types]
private

Definition at line 205 of file disk_reader.h.

◆ input_change_pending

IOChange ARDOUR::DiskReader::input_change_pending
private

Definition at line 204 of file disk_reader.h.

◆ last_refill_loop_start

samplepos_t ARDOUR::DiskReader::last_refill_loop_start
private

Definition at line 251 of file disk_reader.h.

◆ loop_declick_in

Declicker ARDOUR::DiskReader::loop_declick_in
staticprivate

Definition at line 220 of file disk_reader.h.

◆ loop_declick_out

Declicker ARDOUR::DiskReader::loop_declick_out
staticprivate

Definition at line 221 of file disk_reader.h.

◆ loop_fade_length

samplecnt_t ARDOUR::DiskReader::loop_fade_length
staticprivate

Definition at line 222 of file disk_reader.h.

◆ new_file_sample

samplepos_t ARDOUR::DiskReader::new_file_sample
private

Definition at line 202 of file disk_reader.h.

◆ overwrite_offset

sampleoffset_t ARDOUR::DiskReader::overwrite_offset
private

Definition at line 201 of file disk_reader.h.

◆ overwrite_sample

samplepos_t ARDOUR::DiskReader::overwrite_sample
private

Definition at line 200 of file disk_reader.h.

◆ run_must_resolve

bool ARDOUR::DiskReader::run_must_resolve
private

Definition at line 203 of file disk_reader.h.

◆ Underrun

PBD::Signal<void()> ARDOUR::DiskReader::Underrun
static

Definition at line 99 of file disk_reader.h.


The documentation for this class was generated from the following file: