X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fardour%2Faudioregion.cc;h=f1599f6273f8ab6c198c37cc55c791b5b0ea5d17;hb=4dd0203f0169b9450efbdcb865989defb32a29c8;hp=bf4c5c6910d498a464000dc13127b4c8b92a1d80;hpb=e1846c79a9292d4e58527aa1d2a33119ea966902;p=ardour.git diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index bf4c5c6910..f1599f6273 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -279,13 +279,13 @@ AudioRegion::AudioRegion (boost::shared_ptr other) assert (_sources.size() == _master_sources.size()); } -AudioRegion::AudioRegion (boost::shared_ptr other, framecnt_t offset, const int32_t sub_num) - : Region (other, offset, sub_num) +AudioRegion::AudioRegion (boost::shared_ptr other, MusicFrame offset) + : Region (other, offset) , AUDIOREGION_COPY_STATE (other) /* As far as I can see, the _envelope's times are relative to region position, and have nothing to do with sources (and hence _start). So when we copy the envelope, we just use the supplied offset. */ - , _envelope (Properties::envelope, boost::shared_ptr (new AutomationList (*other->_envelope.val(), offset, other->_length))) + , _envelope (Properties::envelope, boost::shared_ptr (new AutomationList (*other->_envelope.val(), offset.frame, other->_length))) , _automatable (other->session()) , _fade_in_suspended (0) , _fade_out_suspended (0) @@ -1095,7 +1095,7 @@ AudioRegion::set_fade_out (boost::shared_ptr f) _fade_out->thaw (); _default_fade_out = false; - send_change (PropertyChange (Properties::fade_in)); + send_change (PropertyChange (Properties::fade_out)); } void