Remove explicit overrides

see 27dcb7560c1cab and 8c83149c4c
This commit is contained in:
Robin Gareus 2022-10-07 00:07:44 +02:00
parent d9c6842ea3
commit f6e471f48d
2 changed files with 3 additions and 6 deletions

View File

@ -140,8 +140,6 @@ Filter::finish (boost::shared_ptr<Region> region, SourceList& nsrcs, string regi
plist.add (Properties::whole_file, true);
boost::shared_ptr<Region> r = RegionFactory::create (nsrcs, plist);
r->set_start (timepos_t(0));
r->set_whole_file (true);
results.push_back (r);
return 0;

View File

@ -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);