From bc38f2c48969be068b93525bdbcce6c1ff4e1d7c Mon Sep 17 00:00:00 2001 From: nick_m Date: Sat, 1 Oct 2016 11:13:41 +1000 Subject: [PATCH] Region pulse is no longer a property. --- libs/ardour/ardour/region.h | 4 ++-- libs/ardour/region.cc | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 9dc51e2d4a..fc14e98cb8 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -58,7 +58,6 @@ namespace Properties { LIBARDOUR_API extern PBD::PropertyDescriptor length; LIBARDOUR_API extern PBD::PropertyDescriptor position; LIBARDOUR_API extern PBD::PropertyDescriptor beat; - LIBARDOUR_API extern PBD::PropertyDescriptor pulse; LIBARDOUR_API extern PBD::PropertyDescriptor sync_position; LIBARDOUR_API extern PBD::PropertyDescriptor layer; LIBARDOUR_API extern PBD::PropertyDescriptor ancestral_start; @@ -378,10 +377,11 @@ class LIBARDOUR_API Region PBD::Property _length; PBD::Property _position; PBD::Property _beat; - PBD::Property _pulse; /** Sync position relative to the start of our file */ PBD::Property _sync_position; + double _pulse; + SourceList _sources; /** Used when timefx are applied, so we can always use the original source */ SourceList _master_sources; diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 3bd0bd273c..dd561be7b0 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -65,7 +65,6 @@ namespace ARDOUR { PBD::PropertyDescriptor length; PBD::PropertyDescriptor position; PBD::PropertyDescriptor beat; - PBD::PropertyDescriptor pulse; PBD::PropertyDescriptor sync_position; PBD::PropertyDescriptor layer; PBD::PropertyDescriptor ancestral_start; @@ -118,8 +117,6 @@ Region::make_property_quarks () DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for position = %1\n", Properties::position.property_id)); Properties::beat.property_id = g_quark_from_static_string (X_("beat")); DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for beat = %1\n", Properties::beat.property_id)); - Properties::pulse.property_id = g_quark_from_static_string (X_("pulse")); - DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for pulse = %1\n", Properties::pulse.property_id)); Properties::sync_position.property_id = g_quark_from_static_string (X_("sync-position")); DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for sync-position = %1\n", Properties::sync_position.property_id)); Properties::layer.property_id = g_quark_from_static_string (X_("layer")); @@ -161,7 +158,6 @@ Region::register_properties () add_property (_length); add_property (_position); add_property (_beat); - add_property (_pulse); add_property (_sync_position); add_property (_ancestral_start); add_property (_ancestral_length); @@ -180,8 +176,8 @@ Region::register_properties () , _length (Properties::length, (l)) \ , _position (Properties::position, 0) \ , _beat (Properties::beat, 0.0) \ - , _pulse (Properties::pulse, 0.0) \ , _sync_position (Properties::sync_position, (s)) \ + , _pulse (0.0) \ , _transient_user_start (0) \ , _transient_analysis_start (0) \ , _transient_analysis_end (0) \ @@ -211,8 +207,8 @@ Region::register_properties () , _length(Properties::length, other->_length) \ , _position(Properties::position, other->_position) \ , _beat (Properties::beat, other->_beat) \ - , _pulse (Properties::pulse, other->_pulse) \ , _sync_position(Properties::sync_position, other->_sync_position) \ + , _pulse (other->_pulse) \ , _user_transients (other->_user_transients) \ , _transient_user_start (other->_transient_user_start) \ , _transients (other->_transients) \ -- 2.30.2