From ddd162bdb050558f93222800ebd57d737f2c9e0d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 24 Jan 2012 17:04:15 +0000 Subject: Make time stretch respect edit groups (#4615). git-svn-id: svn://localhost/ardour2/branches/3.0@11334 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/st_stretch.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libs/ardour/st_stretch.cc') diff --git a/libs/ardour/st_stretch.cc b/libs/ardour/st_stretch.cc index 3660ff34d3..d8009c1218 100644 --- a/libs/ardour/st_stretch.cc +++ b/libs/ardour/st_stretch.cc @@ -56,7 +56,6 @@ STStretch::STStretch (Session& s, TimeFXRequest& req) st.setSetting(SETTING_USE_QUICKSEEK, tsr.quick_seek); st.setSetting(SETTING_USE_AA_FILTER, tsr.antialias); - tsr.progress = 0.0f; } STStretch::~STStretch () @@ -64,7 +63,7 @@ STStretch::~STStretch () } int -STStretch::run (boost::shared_ptr a_region) +STStretch::run (boost::shared_ptr a_region, Progress* progress) { SourceList nsrcs; framecnt_t total_frames; @@ -77,7 +76,7 @@ STStretch::run (boost::shared_ptr a_region) string new_name; string::size_type at; - tsr.progress = 0.0f; + progress->set_progress (0); tsr.done = false; boost::shared_ptr region = boost::dynamic_pointer_cast(a_region); @@ -131,7 +130,7 @@ STStretch::run (boost::shared_ptr a_region) pos += this_read; done += this_read; - tsr.progress = (float) done / total_frames; + progress->set_progress ((float) done / total_frames); st.putSamples (buffer, this_read); -- cgit v1.2.3