summaryrefslogtreecommitdiff
path: root/libs/ardour/rb_effect.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-08-08 15:36:16 +0000
committerCarl Hetherington <carl@carlh.net>2011-08-08 15:36:16 +0000
commit2b2d49fffae72bd2081e783ebe1fc3064b79653f (patch)
treef026fac22bdd1c5d14d6514df506a7a1efb48f46 /libs/ardour/rb_effect.cc
parent5905b58bc0ad8383ef16631b6505c288c550192a (diff)
Set new region length correctly after stretch (part of
#3908). git-svn-id: svn://localhost/ardour2/branches/3.0@9963 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/rb_effect.cc')
-rw-r--r--libs/ardour/rb_effect.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/rb_effect.cc b/libs/ardour/rb_effect.cc
index bc040709f4..e90149926c 100644
--- a/libs/ardour/rb_effect.cc
+++ b/libs/ardour/rb_effect.cc
@@ -355,7 +355,10 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress*)
stretch,
shift);
(*x)->set_master_sources (region->master_sources());
- (*x)->set_length( (*x)->length() * stretch);
+ /* multiply the old (possibly previously stretched) region length by the extra
+ stretch this time around to get its new length
+ */
+ (*x)->set_length ((*x)->length() * tsr.time_fraction);
}
/* stretch region gain envelope */