summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/file_source.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-11-30 13:16:38 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-11-30 13:16:38 +0000
commitacdc88f279760443dc7397290e9c4752af5b23c9 (patch)
tree014adddabb815ab9d906f3bda1a2b2c78128e0ca /libs/ardour/ardour/file_source.h
parent395efbc32d02fda70df50079bedee35c355b3b37 (diff)
attempt to remove confusion and errors caused by unclear semantics of _is_embedded for FileSources; member renamed _within_session, and is now ALWAYS determined by the _path of the FileSource, never by the creator
git-svn-id: svn://localhost/ardour2/branches/3.0@6213 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/file_source.h')
-rw-r--r--libs/ardour/ardour/file_source.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/libs/ardour/ardour/file_source.h b/libs/ardour/ardour/file_source.h
index 4b17881a0b..76c3c57e36 100644
--- a/libs/ardour/ardour/file_source.h
+++ b/libs/ardour/ardour/file_source.h
@@ -42,9 +42,9 @@ public:
void mark_take (const Glib::ustring& id);
void mark_immutable ();
- const Glib::ustring& take_id () const { return _take_id; }
- bool is_embedded () const { return _is_embedded; }
- uint16_t channel() const { return _channel; }
+ const Glib::ustring& take_id () const { return _take_id; }
+ bool within_session () const { return _within_session; }
+ uint16_t channel() const { return _channel; }
int set_state (const XMLNode&, int version);
@@ -58,7 +58,7 @@ public:
protected:
FileSource (Session& session, DataType type,
- const Glib::ustring& path, bool embedded,
+ const Glib::ustring& path,
Source::Flag flags = Source::Flag(0));
FileSource (Session& session, const XMLNode& node, bool must_exist);
@@ -66,8 +66,7 @@ protected:
virtual int init (const Glib::ustring& idstr, bool must_exist);
virtual int move_dependents_to_trash() { return 0; }
-
- void set_embedded_from_name();
+ void set_within_session_from_path (const std::string&);
bool removable () const;
@@ -75,7 +74,7 @@ protected:
Glib::ustring _take_id;
bool _file_is_new;
uint16_t _channel;
- bool _is_embedded;
+ bool _within_session;
static std::map<DataType, Glib::ustring> search_paths;
};