void set_fade_out (FadeShape, framecnt_t);
void set_fade_out (boost::shared_ptr<AutomationList>);
+ void set_default_fades ();
+
void set_envelope_active (bool yn);
void set_default_envelope ();
void post_set (const PBD::PropertyChange&);
void init ();
- void set_default_fades ();
void set_default_fade_in ();
void set_default_fade_out ();
, _crossfades (*this)
{
add_property (_crossfades);
+
+ /* Audio regions that have been created by the Playlist constructor
+ will currently have the same fade in/out as the regions that they
+ were created from. This is wrong, so reset the fades here.
+ */
+
+ for (RegionList::iterator i = regions.begin(); i != regions.end(); ++i) {
+ boost::shared_ptr<AudioRegion> ar = boost::dynamic_pointer_cast<AudioRegion> (*i);
+ assert (ar);
+ ar->set_default_fades ();
+ }
/* this constructor does NOT notify others (session) */
}