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

#include <playlist_source.h>

Inheritance diagram for ARDOUR::PlaylistSource:
[legend]

Public Member Functions

virtual ~PlaylistSource ()
 
int set_state (const XMLNode &, int version)
 
std::shared_ptr< const Playlistplaylist () const
 
const PBD::IDoriginal () const
 
const PBD::IDowner () const
 
void set_owner (PBD::ID const &id)
 
- Public Member Functions inherited from ARDOUR::Source
 Source (Session &, DataType type, const std::string &name, Flag flags=Flag(0))
 
 Source (Session &, const XMLNode &)
 
virtual ~Source ()
 
DataType type ()
 
time_t timestamp () const
 
void stamp (time_t when)
 
virtual timepos_t length () const
 
virtual bool empty () const
 
virtual void update_length (timepos_t const &dur)
 
void set_take_id (std::string id)
 
const std::string & take_id () const
 
void mark_for_remove ()
 
virtual void mark_streaming_write_started (const WriterLock &lock)
 
virtual void mark_streaming_write_completed (const WriterLock &lock, Temporal::timecnt_t const &duration)=0
 
virtual void session_saved ()
 
XMLNodeget_state () const
 
int set_state (XMLNode const &, int version)
 
bool writable () const
 
virtual bool length_mutable () const
 
bool has_been_analysed () const
 
virtual bool can_be_analysed () const
 
virtual void set_been_analysed (bool yn)
 
virtual bool check_for_analysis_data_on_disk ()
 
std::string get_transients_path () const
 
int load_transients (const std::string &)
 
size_t n_captured_xruns () const
 
XrunPositions const & captured_xruns () const
 
void set_captured_xruns (XrunPositions const &xruns)
 
void set_captured_marks (CueMarkers const &marks)
 
CueMarkers const & cue_markers () const
 
bool add_cue_marker (CueMarker const &)
 
bool move_cue_marker (CueMarker const &, timepos_t const &source_relative_position)
 
bool remove_cue_marker (CueMarker const &)
 
bool rename_cue_marker (CueMarker &, std::string const &)
 
bool clear_cue_markers ()
 
virtual timepos_t natural_position () const
 
virtual void set_natural_position (timepos_t const &pos)
 
bool have_natural_position () const
 
timecnt_t time_since_capture_start (timepos_t const &pos)
 
void set_allow_remove_if_empty (bool yn)
 
Glib::Threads::RWLock & mutex ()
 
Flag flags () const
 
virtual void inc_use_count ()
 
virtual void dec_use_count ()
 
int use_count () const
 
bool used () const
 
uint32_t level () const
 
std::string ancestor_name ()
 
void set_ancestor_name (const std::string &name)
 
void set_captured_for (std::string str)
 
std::string captured_for () const
 
bool get_segment_descriptor (TimelineRange const &, SegmentDescriptor &)
 
int set_segment_descriptor (SegmentDescriptor const &)
 
- Public Member Functions inherited from ARDOUR::SessionObject
 SessionObject (Session &session, const std::string &name)
 
Sessionsession () const
 
std::string name () const
 
virtual bool set_name (const std::string &str)
 
- 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 ()
 

Protected Member Functions

 PlaylistSource (Session &, const PBD::ID &, const std::string &name, std::shared_ptr< Playlist >, DataType, timepos_t const &begin, timepos_t const &len, Source::Flag flags)
 
 PlaylistSource (Session &, const XMLNode &)
 
void add_state (XMLNode &) 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 Attributes

std::shared_ptr< Playlist_playlist
 
PBD::ID _original
 
PBD::ID _owner
 
timepos_t _playlist_offset
 
timepos_t _playlist_length
 
- Protected Attributes inherited from ARDOUR::Source
DataType _type
 
Flag _flags
 
time_t _timestamp
 
std::string _take_id
 
timepos_t _natural_position
 
bool _have_natural_position
 
bool _analysed
 
std::atomic< int > _use_count
 
uint32_t _level
 
std::string _ancestor_name
 
std::string _captured_for
 
timepos_t _length
 
XrunPositions _xruns
 
CueMarkers _cue_markers
 
SegmentDescriptors segment_descriptors
 
Glib::Threads::RWLock _lock
 
Glib::Threads::Mutex _analysis_lock
 
- 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
 

Additional Inherited Members

- Public Types inherited from ARDOUR::Source
enum  Flag {
  Writable = 0x1 , CanRename = 0x2 , Broadcast = 0x4 , Removable = 0x8 ,
  RemovableIfEmpty = 0x10 , RemoveAtDestroy = 0x20 , NoPeakFile = 0x40 , Destructive = 0x80 ,
  Empty = 0x100 , RF64_RIFF = 0x200 , Missing = 0x400
}
 
typedef Glib::Threads::RWLock::ReaderLock ReaderLock
 
typedef Glib::Threads::RWLock::WriterLock WriterLock
 
- Static Public Member Functions inherited from ARDOUR::SessionObject
static void make_property_quarks ()
 
- Public Attributes inherited from ARDOUR::Source
PBD::Signal< void()> AnalysisChanged
 
AnalysisFeatureList transients
 
PBD::Signal< void()> CueMarkersChanged
 
- 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
 
- Static Public Attributes inherited from ARDOUR::Source
static PBD::Signal< void(Source *)> SourceCreated
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Protected Types inherited from ARDOUR::Source
typedef std::vector< SegmentDescriptorSegmentDescriptors
 

Detailed Description

Definition at line 31 of file playlist_source.h.

Constructor & Destructor Documentation

◆ ~PlaylistSource()

virtual ARDOUR::PlaylistSource::~PlaylistSource ( )
virtual

◆ PlaylistSource() [1/2]

ARDOUR::PlaylistSource::PlaylistSource ( Session ,
const PBD::ID ,
const std::string &  name,
std::shared_ptr< Playlist ,
DataType  ,
timepos_t const &  begin,
timepos_t const &  len,
Source::Flag  flags 
)
protected

◆ PlaylistSource() [2/2]

ARDOUR::PlaylistSource::PlaylistSource ( Session ,
const XMLNode  
)
protected

Member Function Documentation

◆ add_state()

void ARDOUR::PlaylistSource::add_state ( XMLNode ) const
protected

◆ original()

const PBD::ID& ARDOUR::PlaylistSource::original ( ) const
inline

Definition at line 37 of file playlist_source.h.

◆ owner()

const PBD::ID& ARDOUR::PlaylistSource::owner ( ) const
inline

Definition at line 38 of file playlist_source.h.

◆ playlist()

std::shared_ptr<const Playlist> ARDOUR::PlaylistSource::playlist ( ) const
inline

Definition at line 36 of file playlist_source.h.

◆ set_owner()

void ARDOUR::PlaylistSource::set_owner ( PBD::ID const &  id)

◆ set_state()

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

Implements PBD::Stateful.

Member Data Documentation

◆ _original

PBD::ID ARDOUR::PlaylistSource::_original
protected

Definition at line 44 of file playlist_source.h.

◆ _owner

PBD::ID ARDOUR::PlaylistSource::_owner
protected

Definition at line 45 of file playlist_source.h.

◆ _playlist

std::shared_ptr<Playlist> ARDOUR::PlaylistSource::_playlist
protected

Definition at line 43 of file playlist_source.h.

◆ _playlist_length

timepos_t ARDOUR::PlaylistSource::_playlist_length
protected

Definition at line 47 of file playlist_source.h.

◆ _playlist_offset

timepos_t ARDOUR::PlaylistSource::_playlist_offset
protected

Definition at line 46 of file playlist_source.h.


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