13
0

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:
Paul Davis 2010-12-20 16:11:23 +00:00
parent e178fb2e50
commit 76e7a89a51
4 changed files with 11 additions and 2 deletions

View File

@ -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 ();

View File

@ -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 ();

View File

@ -224,7 +224,7 @@ AudioRegion::~AudioRegion ()
}
void
AudioRegion::post_set ()
AudioRegion::post_set (const PropertyChange& /*ignored*/)
{
if (!_sync_marked) {
_sync_position = _start;

View File

@ -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)
{