From f6e471f48dfabea9859ebfb081e446dc400bd32f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 7 Oct 2022 00:07:44 +0200 Subject: [PATCH] Remove explicit overrides see 27dcb7560c1cab and 8c83149c4c5b --- libs/ardour/filter.cc | 2 -- libs/ardour/lua_api.cc | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/libs/ardour/filter.cc b/libs/ardour/filter.cc index 7095542f5e..7d628a7849 100644 --- a/libs/ardour/filter.cc +++ b/libs/ardour/filter.cc @@ -140,8 +140,6 @@ Filter::finish (boost::shared_ptr region, SourceList& nsrcs, string regi plist.add (Properties::whole_file, true); boost::shared_ptr r = RegionFactory::create (nsrcs, plist); - r->set_start (timepos_t(0)); - r->set_whole_file (true); results.push_back (r); return 0; diff --git a/libs/ardour/lua_api.cc b/libs/ardour/lua_api.cc index dcdf54ed86..d842fe5d90 100644 --- a/libs/ardour/lua_api.cc +++ b/libs/ardour/lua_api.cc @@ -1236,13 +1236,12 @@ LuaAPI::Rubberband::finalize () ar->set_ancestral_data (timepos_t (_read_start), timecnt_t (_read_len, timepos_t (_read_start)), _stretch_ratio, _pitch_ratio); ar->set_master_sources (_region->master_sources ()); - ar->set_start (timepos_t(0)); #if 0 // TODO construct ratio_t from double - ar->set_length (ar->length ().scale (_stretch_ratio)); + ar->set_length_unchecked (ar->length ().scale (_stretch_ratio)); #else - ar->set_length (timecnt_t (_stretch_ratio * ar->length_samples (), ar->position())); + ar->set_length_unchecked (timecnt_t (_stretch_ratio * ar->length_samples (), ar->position())); #endif - ar->set_whole_file (true); + ar->set_whole_file (true); // set_length() unsets whole_file if (_stretch_ratio != 1.0) { // TODO: apply mapping ar->envelope ()->x_scale (_stretch_ratio);