X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fardour%2Ffilter.cc;h=8067edf14ec71fc69377d88a6077c24329dfb9dc;hb=bc3e1a212250a67e53e86c972287a275834a967a;hp=2ff93316f316392880f9c605d373d30fe9bf8523;hpb=ce7a5e1c9fa3edf2d9cc66875505e402a0aaa6f6;p=ardour.git diff --git a/libs/ardour/filter.cc b/libs/ardour/filter.cc index 2ff93316f3..8067edf14e 100644 --- a/libs/ardour/filter.cc +++ b/libs/ardour/filter.cc @@ -70,7 +70,7 @@ Filter::make_new_sources (boost::shared_ptr region, SourceList& nsrcs, s try { nsrcs.push_back (boost::dynamic_pointer_cast ( SourceFactory::createWritable (region->data_type(), session, - path, false, session.frame_rate()))); + path, string(), false, session.frame_rate()))); } catch (failed_constructor& err) { @@ -116,12 +116,12 @@ Filter::finish (boost::shared_ptr region, SourceList& nsrcs, string regi /* create a new region */ if (region_name.empty()) { - region_name = session.new_region_name (region->name()); + region_name = RegionFactory::new_region_name (region->name()); } results.clear (); PropertyList plist; - + plist.add (Properties::start, 0); plist.add (Properties::length, region->length()); plist.add (Properties::name, region_name); @@ -138,6 +138,7 @@ Filter::finish (boost::shared_ptr region, SourceList& nsrcs, string regi audio_r->set_fade_in (audio_region->fade_in ()); audio_r->set_fade_out_active (audio_region->fade_out_active ()); audio_r->set_fade_out (audio_region->fade_out ()); + *(audio_r->envelope()) = *(audio_region->envelope ()); } results.push_back (r);