diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-16 02:17:58 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-16 02:17:58 +0000 |
commit | 0a9cef7720ed9bd83442d284d18831437b80a482 (patch) | |
tree | 73f8b7e6780bbaf57bcf14dccb6d759556220cef /libs/ardour/source_factory.cc | |
parent | 88a6513e76e397bdd19d4e76eaf44da8170cf73a (diff) |
very basic Join (regions) editing operation. not finished yet, no undoable, no sensible name for new region, etc. etc
git-svn-id: svn://localhost/ardour2/branches/3.0@9518 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/source_factory.cc')
-rw-r--r-- | libs/ardour/source_factory.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libs/ardour/source_factory.cc b/libs/ardour/source_factory.cc index 891e431549..1bf3956694 100644 --- a/libs/ardour/source_factory.cc +++ b/libs/ardour/source_factory.cc @@ -326,8 +326,7 @@ SourceFactory::createWritable (DataType type, Session& s, const std::string& pat boost::shared_ptr<Source> SourceFactory::createFromPlaylist (DataType type, Session& s, boost::shared_ptr<Playlist> p, const std::string& name, - uint32_t chn, frameoffset_t start, framecnt_t len, bool copy, Source::Flag flags, - bool announce, bool defer_peaks) + uint32_t chn, frameoffset_t start, framecnt_t len, bool copy, bool defer_peaks) { if (type == DataType::AUDIO) { try { @@ -335,7 +334,7 @@ SourceFactory::createFromPlaylist (DataType type, Session& s, boost::shared_ptr< boost::shared_ptr<AudioPlaylist> ap = boost::dynamic_pointer_cast<AudioPlaylist>(p); if (ap) { - Source* src = new AudioPlaylistSource (s, name, ap, chn, start, len, copy, flags); + Source* src = new AudioPlaylistSource (s, name, ap, chn, start, len, copy, Source::Flag (0)); boost::shared_ptr<Source> ret (src); if (setup_peakfile (ret, defer_peaks)) { @@ -344,9 +343,7 @@ SourceFactory::createFromPlaylist (DataType type, Session& s, boost::shared_ptr< ret->check_for_analysis_data_on_disk (); - if (announce) { - SourceCreated (ret); - } + /* we never announce these sources */ return ret; } |