+ /* multiply the old (possibly previously stretched) region length by the extra
+ stretch this time around to get its new length. this is a non-music based edit atm.
+ */
+ (*x)->set_length ((*x)->length() * tsr.time_fraction, 0);
+ }
+
+ /* stretch region gain envelope */
+ /* XXX: assuming we've only processed one input region into one result here */
+
+ if (tsr.time_fraction != 1) {
+ result = boost::dynamic_pointer_cast<AudioRegion> (results.front());
+ assert (result);
+ result->envelope()->x_scale (tsr.time_fraction);