From 66a9112d48b5726f61eec7ce4cfc4bd15b9420d0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 9 Nov 2010 18:19:53 +0000 Subject: add "origin" property to FileSource so that we can track multiple imports git-svn-id: svn://localhost/ardour2/branches/3.0@7986 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/sndfilesource.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libs/ardour/sndfilesource.cc') diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index 9508391d07..0afe50a311 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -69,6 +69,7 @@ SndFileSource::SndFileSource (Session& s, const XMLNode& node) /** Files created this way are never writable or removable */ SndFileSource::SndFileSource (Session& s, const string& path, int chn, Flag flags) : Source(s, DataType::AUDIO, path, flags) + /* note that the origin of an external file is itself */ , AudioFileSource (s, path, Flag (flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy))) { _channel = chn; @@ -81,10 +82,10 @@ SndFileSource::SndFileSource (Session& s, const string& path, int chn, Flag flag } /** This constructor is used to construct new files, not open existing ones. */ -SndFileSource::SndFileSource (Session& s, const string& path, - SampleFormat sfmt, HeaderFormat hf, nframes_t rate, Flag flags) +SndFileSource::SndFileSource (Session& s, const string& path, const string& origin, + SampleFormat sfmt, HeaderFormat hf, nframes_t rate, Flag flags) : Source(s, DataType::AUDIO, path, flags) - , AudioFileSource (s, path, flags, sfmt, hf) + , AudioFileSource (s, path, origin, flags, sfmt, hf) { int fmt = 0; -- cgit v1.2.3