diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-30 14:02:26 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-30 14:02:26 -0400 |
commit | b691d4bf04b46059c09e144e34fc58504926ef06 (patch) | |
tree | fca444144590883ef1b3b6b77da1c85104b51429 /libs/ardour/ardour/source_factory.h | |
parent | 864ce8f0d1aaefdbf7cb582b9ed34d669e81c468 (diff) |
fix up some confusion with filesources' _origin and _file_is_new members. if _origin is set, it means that the file is "external" to the session (aka "embedded") and for some purposes this is more significant than _file_is_new. rename SourceFactory::createReadable() to ::createExternal() to more clearly indicate its purpose; remove never-supplied "origin" argument from SourceFactor::createWritable(). Fixes problems caused by 864ce8f0
Diffstat (limited to 'libs/ardour/ardour/source_factory.h')
-rw-r--r-- | libs/ardour/ardour/source_factory.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/ardour/source_factory.h b/libs/ardour/ardour/source_factory.h index 387a40aff3..c94f783b44 100644 --- a/libs/ardour/ardour/source_factory.h +++ b/libs/ardour/ardour/source_factory.h @@ -46,14 +46,14 @@ class SourceFactory { static boost::shared_ptr<Source> createSilent (Session&, const XMLNode& node, framecnt_t nframes, float sample_rate); - static boost::shared_ptr<Source> createReadable + static boost::shared_ptr<Source> createExternal (DataType type, Session&, - const std::string& path, + const std::string& path, int chn, Source::Flag flags, bool announce = true, bool async = false); static boost::shared_ptr<Source> createWritable (DataType type, Session&, - const std::string& path, const std::string& origin, + const std::string& path, bool destructive, framecnt_t rate, bool announce = true, bool async = false); |