13
0

trying to track down why undo doesn't remove xfade rendering on OS X

git-svn-id: svn://localhost/ardour2/branches/3.0@13102 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-07-29 23:50:00 +00:00
parent 611dcdd249
commit 9743340fa3
2 changed files with 18 additions and 1 deletions

View File

@ -267,7 +267,7 @@ void
AudioRegionView::region_changed (const PropertyChange& what_changed)
{
ENSURE_GUI_THREAD (*this, &AudioRegionView::region_changed, what_changed);
// cerr << "AudioRegionView::region_changed() called" << endl;
cerr << "AudioRegionView::region_changed() called" << endl;
RegionView::region_changed (what_changed);
@ -275,17 +275,30 @@ AudioRegionView::region_changed (const PropertyChange& what_changed)
region_scale_amplitude_changed ();
}
if (what_changed.contains (ARDOUR::Properties::fade_in)) {
cerr << region()->name() << " in changed\n";
stacktrace (cerr, 40);
fade_in_changed ();
}
if (what_changed.contains (ARDOUR::Properties::fade_out)) {
cerr << region()->name() << " out changed\n";
fade_out_changed ();
}
if (what_changed.contains (ARDOUR::Properties::fade_in_active)) {
cerr << region()->name() << " in active changed\n";
fade_in_active_changed ();
}
if (what_changed.contains (ARDOUR::Properties::fade_out_active)) {
cerr << region()->name() << " out active changed\n";
fade_out_active_changed ();
}
if (what_changed.contains (ARDOUR::Properties::fade_in_is_xfade)) {
cerr << region()->name() << " in is xfade changed\n";
fade_in_changed ();
}
if (what_changed.contains (ARDOUR::Properties::fade_out_is_xfade)) {
cerr << region()->name() << " out is xfade changed\n";
fade_out_changed ();
}
if (what_changed.contains (ARDOUR::Properties::envelope_active)) {
envelope_active_changed ();
}

View File

@ -46,6 +46,10 @@ namespace Properties {
extern PBD::PropertyDescriptor<bool> fade_in_active;
extern PBD::PropertyDescriptor<bool> fade_out_active;
extern PBD::PropertyDescriptor<float> scale_amplitude;
extern PBD::PropertyDescriptor<bool> fade_out_is_xfade;
extern PBD::PropertyDescriptor<bool> fade_out_is_short;
extern PBD::PropertyDescriptor<bool> fade_in_is_xfade;
extern PBD::PropertyDescriptor<bool> fade_in_is_short;
extern PBD::PropertyDescriptor<boost::shared_ptr<AutomationList> > fade_in;
extern PBD::PropertyDescriptor<boost::shared_ptr<AutomationList> > inverse_fade_in;
extern PBD::PropertyDescriptor<boost::shared_ptr<AutomationList> > fade_out;