Ardour
9.0-pre0-582-g084a23a80d
|
#include <file_source.h>
Public Member Functions | |
virtual | ~FileSource () |
const std::string & | path () const |
virtual bool | safe_file_extension (const std::string &path) const =0 |
int | move_to_trash (const std::string &trash_dir_name) |
void | mark_take (const std::string &id) |
void | mark_immutable () |
void | mark_immutable_except_write () |
void | mark_nonremovable () |
bool | within_session () const |
uint16_t | channel () const |
float | gain () const |
virtual void | set_gain (float g, bool temporarily=false) |
virtual void | set_channel (uint16_t c) |
int | set_state (const XMLNode &, int version) |
int | set_source_name (const std::string &newname) |
bool | removable () const |
bool | is_stub () const |
const std::string & | origin () const |
void | set_origin (std::string const &o) |
virtual void | set_path (const std::string &) |
void | replace_file (const std::string &) |
void | existence_check () |
virtual void | prevent_deletion () |
int | rename (const std::string &name) |
virtual void | close ()=0 |
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 () |
XMLNode & | get_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) | |
Session & | session () 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 | |
ScopedConnectionList & | operator= (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 OwnedPropertyList & | properties () const |
void | add_property (PropertyBase &s) |
void | add_extra_xml (XMLNode &) |
XMLNode * | extra_xml (const std::string &str, bool add_if_missing=false) |
void | save_extra_xml (const XMLNode &) |
const PBD::ID & | id () const |
bool | set_id (const XMLNode &) |
void | set_id (const std::string &) |
void | reset_id () |
void | clear_changes () |
virtual void | clear_owned_changes () |
PropertyList * | get_changes_as_properties (PBD::Command *) const |
virtual void | rdiff (std::vector< PBD::Command * > &) const |
bool | changed () const |
virtual PropertyList * | property_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 () |
Static Public Member Functions | |
static bool | find (Session &, DataType type, const std::string &path, bool must_exist, bool &is_new, uint16_t &chan, std::string &found_path) |
static bool | find_2X (Session &, DataType type, const std::string &path, bool must_exist, bool &is_new, uint16_t &chan, std::string &found_path) |
Static Public Member Functions inherited from ARDOUR::SessionObject | |
static void | make_property_quarks () |
Static Public Attributes | |
static PBD::Signal< int(std::string, std::vector< std::string >)> | AmbiguousFileName |
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 Member Functions | |
FileSource (Session &session, DataType type, const std::string &path, const std::string &origin, Source::Flag flags=Source::Flag(0)) | |
FileSource (Session &session, const XMLNode &node, bool must_exist) | |
virtual int | init (const std::string &idstr, bool must_exist) |
virtual int | move_dependents_to_trash () |
void | set_within_session_from_path (const std::string &) |
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) |
XMLNode * | instant_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 |
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 |
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 |
Protected Types inherited from ARDOUR::Source | |
typedef std::vector< SegmentDescriptor > | SegmentDescriptors |
A source associated with a file on disk somewhere
Definition at line 46 of file file_source.h.
|
virtual |
|
protected |
|
protected |
|
inline |
Definition at line 61 of file file_source.h.
|
pure virtual |
void ARDOUR::FileSource::existence_check | ( | ) |
|
static |
|
static |
|
inline |
Definition at line 62 of file file_source.h.
|
protectedvirtual |
Reimplemented in ARDOUR::AudioFileSource.
bool ARDOUR::FileSource::is_stub | ( | ) | const |
void ARDOUR::FileSource::mark_immutable | ( | ) |
void ARDOUR::FileSource::mark_immutable_except_write | ( | ) |
void ARDOUR::FileSource::mark_nonremovable | ( | ) |
void ARDOUR::FileSource::mark_take | ( | const std::string & | id | ) |
|
inlineprotectedvirtual |
Reimplemented in ARDOUR::AudioFileSource.
Definition at line 108 of file file_source.h.
int ARDOUR::FileSource::move_to_trash | ( | const std::string & | trash_dir_name | ) |
|
inline |
Definition at line 82 of file file_source.h.
|
inline |
Definition at line 50 of file file_source.h.
|
virtual |
Reimplemented in ARDOUR::SMFSource.
bool ARDOUR::FileSource::removable | ( | ) | const |
int ARDOUR::FileSource::rename | ( | const std::string & | name | ) |
Rename the file on disk referenced by this source to newname
void ARDOUR::FileSource::replace_file | ( | const std::string & | ) |
|
pure virtual |
Implemented in ARDOUR::SMFSource, and ARDOUR::AudioFileSource.
|
inlinevirtual |
Definition at line 65 of file file_source.h.
|
inlinevirtual |
Reimplemented in ARDOUR::AudioFileSource.
Definition at line 64 of file file_source.h.
|
inline |
Definition at line 83 of file file_source.h.
|
virtual |
Reimplemented in ARDOUR::SndFileSource, ARDOUR::CoreAudioSource, and ARDOUR::SMFSource.
int ARDOUR::FileSource::set_source_name | ( | const std::string & | newname | ) |
|
virtual |
Implements PBD::Stateful.
Reimplemented in ARDOUR::SMFSource.
|
protected |
|
inline |
Definition at line 60 of file file_source.h.
|
protected |
Definition at line 113 of file file_source.h.
|
protected |
Definition at line 112 of file file_source.h.
|
protected |
Definition at line 116 of file file_source.h.
|
protected |
Definition at line 115 of file file_source.h.
|
protected |
Definition at line 111 of file file_source.h.
|
protected |
Definition at line 114 of file file_source.h.
|
static |
Definition at line 88 of file file_source.h.