diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-30 13:16:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-30 13:16:38 +0000 |
commit | acdc88f279760443dc7397290e9c4752af5b23c9 (patch) | |
tree | 014adddabb815ab9d906f3bda1a2b2c78128e0ca /libs/ardour/sndfilesource.cc | |
parent | 395efbc32d02fda70df50079bedee35c355b3b37 (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/sndfilesource.cc')
-rw-r--r-- | libs/ardour/sndfilesource.cc | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index 1b8b01b85a..5836bdd95c 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -67,10 +67,9 @@ SndFileSource::SndFileSource (Session& s, const XMLNode& node) } /** Files created this way are never writable or removable */ -SndFileSource::SndFileSource (Session& s, const ustring& path, bool embedded, int chn, Flag flags) +SndFileSource::SndFileSource (Session& s, const ustring& path, int chn, Flag flags) : Source(s, DataType::AUDIO, path, flags) - , AudioFileSource (s, path, embedded, - Flag (flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy))) + , AudioFileSource (s, path, Flag (flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy))) { _channel = chn; @@ -82,10 +81,10 @@ SndFileSource::SndFileSource (Session& s, const ustring& path, bool embedded, in } /** This constructor is used to construct new files, not open existing ones. */ -SndFileSource::SndFileSource (Session& s, const ustring& path, bool embedded, +SndFileSource::SndFileSource (Session& s, const ustring& path, SampleFormat sfmt, HeaderFormat hf, nframes_t rate, Flag flags) : Source(s, DataType::AUDIO, path, flags) - , AudioFileSource (s, path, embedded, flags, sfmt, hf) + , AudioFileSource (s, path, flags, sfmt, hf) { int fmt = 0; @@ -178,12 +177,6 @@ SndFileSource::init_sndfile () sf = 0; _broadcast_info = 0; - if (is_embedded()) { - _name = _path; - } else { - _name = Glib::path_get_basename (_path); - } - /* although libsndfile says we don't need to set this, valgrind and source code shows us that we do. */ |