use notification of what was changed in MidiRegion::post_set() call
git-svn-id: svn://localhost/ardour2/branches/3.0@8307 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e178fb2e50
commit
76e7a89a51
@ -197,7 +197,7 @@ class AudioRegion : public Region
|
||||
PBD::Property<gain_t> _scale_amplitude;
|
||||
|
||||
void register_properties ();
|
||||
void post_set ();
|
||||
void post_set (const PBD::PropertyChange&);
|
||||
|
||||
void init ();
|
||||
void set_default_fades ();
|
||||
|
@ -130,6 +130,7 @@ class MidiRegion : public Region
|
||||
MidiStateTracker* tracker = 0) const;
|
||||
|
||||
void register_properties ();
|
||||
void post_set (const PBD::PropertyChange&);
|
||||
|
||||
void recompute_at_start ();
|
||||
void recompute_at_end ();
|
||||
|
@ -224,7 +224,7 @@ AudioRegion::~AudioRegion ()
|
||||
}
|
||||
|
||||
void
|
||||
AudioRegion::post_set ()
|
||||
AudioRegion::post_set (const PropertyChange& /*ignored*/)
|
||||
{
|
||||
if (!_sync_marked) {
|
||||
_sync_position = _start;
|
||||
|
@ -123,6 +123,14 @@ MidiRegion::clone ()
|
||||
return boost::dynamic_pointer_cast<MidiRegion> (RegionFactory::create (ms, plist, true));
|
||||
}
|
||||
|
||||
void
|
||||
MidiRegion::post_set (const PropertyChange& pc)
|
||||
{
|
||||
if (pc.contains (Properties::length) || pc.contains (Properties::position)) {
|
||||
update_length_beats ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
MidiRegion::set_length_internal (framecnt_t len)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user